How to change the GtkNotebook background color
- BaxEDM
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 29
- Thank you received: 10
01 Mar 2023 20:53 - 01 Mar 2023 20:54 #265672
by BaxEDM
How to change the GtkNotebook background color was created by BaxEDM
Most of the widgets in Glade-3 have grey backgrounds. GtkNotebook however has a white background for some reason, so when widgets are added to it, it looks ugly. I've been trying allsorts of things to modify the background color of GtkNotebook from white to grey without avail.
Does anyone here have a simple way of doing this?
Does anyone here have a simple way of doing this?
Last edit: 01 Mar 2023 20:54 by BaxEDM.
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
Less
More
- Posts: 633
- Thank you received: 182
02 Mar 2023 21:19 #265742
by HansU
Replied by HansU on topic How to change the GtkNotebook background color
I am afraid but I think the only way is to do that with CSS as the background-controlling functions are all deprecated in Gtk3.
Here you see how this is made in Gmoccapy: github.com/hansu/linuxcnc/blob/d4c703aeb...moccapy.py#L145-L168
Only if you are using Gtk2 / Linuxcnc 2.8 you can maybe use modify_bg() or similar.
Here you see how this is made in Gmoccapy: github.com/hansu/linuxcnc/blob/d4c703aeb...moccapy.py#L145-L168
Only if you are using Gtk2 / Linuxcnc 2.8 you can maybe use modify_bg() or similar.
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.044 seconds