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
9namespace Inkscape::Util {
10
11// check background color to see if we are using dark theme
12bool is_current_theme_dark(Gtk::Widget& widget);
13
14// checkerboard ARGB colors (background for semi-transparent drawing); dark-theme aware
15std::tuple<std::uint32_t, std::uint32_t> get_checkerboard_colors(Gtk::Widget& widget);
16
17}
18
19#endif //THEME_UTILS_H
Miscellaneous supporting code.
Definition document.h:93
bool is_current_theme_dark(Gtk::Widget &widget)
std::tuple< std::uint32_t, std::uint32_t > get_checkerboard_colors(Gtk::Widget &widget)