I see in the mailing list that gtkmm4 is coming... :-)
Will goocanvasmm-2 also work with upcoming gtkmm4? Maybe is there a new
release like goocanvasmm-3? Can anyone test if it still compiles within
gtkmm4.
Regards
Klaus
___
gtkmm-list mailing list
gotchas will probably be found by checking what the default theme does.
that'll be gtk/themes/Adwaita/_common.scss in the Git repository.
you can either work with/over those, or if you really wanted just write
your own theme... or unset props for entire widgets before theming them.
it's probably
Thank you very much!
I now have an entry point!
I now found the background, background-color and background-image
properties. But the relation and the default for the image thing which
"hides" the color is not described. I am in hope that I will not fall so
often over such "gotcha" :-)
For
search for *gtk css properties* and gtk* css overview* and you will find
the general stuff. these are also in the installed documentation with the
lib.
then if you think there are gaps there, chances are it will be documented
for CSS generally and not specific to GTK.
individual widgets are not
just search for the C class name, e.g. /GtkButton/
https://developer.gnome.org/gtk3/stable/GtkButton.html
OK, found the page, but I did not find CSS things like "background-color".
in CSS. either add a line
/background-image: none/
or use the shorthand /background:/ instead of
On Wed, 4 Mar 2020, 18:35 Klaus Rudolph, wrote:
>
>
> > see C GTK docs for CSS node/class info. i can't recall whether gtkmm's
> > doc conversion preserves that section.
>
> Can you point me to the docs? I searched a lot but did not find it.
>
just search for the C class name, e.g. *GtkButton*
see C GTK docs for CSS node/class info. i can't recall whether gtkmm's
doc conversion preserves that section.
Can you point me to the docs? I searched a lot but did not find it.
Thanks for the hint of "first unset..." . Is unsetting image done also
with css or is that a method call?
Sorry
-- Forwarded message -
From: Daniel Boles
Date: Wed, 4 Mar 2020, 18:27
Subject: Re: Unable to set background color for button
To: Klaus Rudolph
that is another typical 'gotcha'. you need to unset the background-image,
or just set the shorthand background property instead of
I tried now the following, but it still doesn't work:
int main(int argc, char *argv[])
{
auto app = Gtk::Application::create(argc, argv, "org.gtkmm.example");
Gtk::Window window;
Gtk::Button button("Some text");
window.add(button);
Gdk::RGBA color;
Thanks!
Is there any example available to set the background color of a button
with the StyleProvider?
Am 04.03.20 um 18:51 schrieb Daniel Boles via gtkmm-list:
yes they do:
"""
Deprecated: 3.16: This function is not useful in the context of
CSS-based rendering. If you wish to change the
yes they do:
"""
Deprecated: 3.16: This function is not useful in the context of CSS-based
rendering. If you wish to change the way a widget renders its background
you should use a custom CSS style, through an application-specific
Gtk::StyleProvider
I want to change the background color of a Gtk::Button, but I simply can
not do it :-(
int main(int argc, char *argv[])
{
auto app = Gtk::Application::create(argc, argv, "org.gtkmm.example");
Gtk::Window window;
Gtk::Button button("Some text");
window.add(button);
12 matches
Mail list logo