Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
theme-utils.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
3
#ifndef THEME_UTILS_H
4
#define THEME_UTILS_H
5
6
#include <cstdint>
7
#include <gtkmm/widget.h>
8
9
namespace
Inkscape::Util
{
10
11
// check background color to see if we are using dark theme
12
bool
is_current_theme_dark
(Gtk::Widget& widget);
13
14
// checkerboard ARGB colors (background for semi-transparent drawing); dark-theme aware
15
std::tuple<std::uint32_t, std::uint32_t>
get_checkerboard_colors
(Gtk::Widget& widget);
16
17
}
18
19
#endif
//THEME_UTILS_H
Inkscape::Util
Miscellaneous supporting code.
Definition
document.h:93
Inkscape::Util::is_current_theme_dark
bool is_current_theme_dark(Gtk::Widget &widget)
Definition
theme-utils.cpp:10
Inkscape::Util::get_checkerboard_colors
std::tuple< std::uint32_t, std::uint32_t > get_checkerboard_colors(Gtk::Widget &widget)
Definition
theme-utils.cpp:20
src
util
theme-utils.h
Generated on Sun Jul 13 2025 04:02:23 for Inkscape by
1.9.8