Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 4,768
» Latest member: Todd
» Forum threads: 6,977
» Forum posts: 38,108
Full Statistics
|
|
|
Stylizing GtkNotebook Tabs in Theme (gtkrc) |
Posted by: migf1 - 06-13-2020, 06:41 PM - Forum: General questions
- Replies (23)
|
|
Hello,
I actually subscribed to ask you guys this, but frankly I don't know if this is the right forum. If not, I would appreciate some pointers to the right place(s). Thanks in advance.
Long story short (and for the name of the loving God) I cannot find which widget corresponds to the tabs of a GtkNotebook in the gtkrc file (and hence to the GimpDockbook, since according to the docs it inherits the styles of the GtkNotebook).
With lots of trial & error attempts, I figured that the widget_class "*<GtkNotebook>.<GtkWidget>.<GtkLabel>" affects the labels of the tabs (their text title) but what I'm after is how to highlight the active tab, as shown in the Gtk2 docs: https://developer.gnome.org/gtk2/stable/notebook.png (that little blue stripe, at the top of the active tab)
Btw, the full docs are here: https://developer.gnome.org/gtk2/stable/...ebook.html
I can colorize the actual pane of the active tab (the white area in the image above), as well as the background color of the inactive tabs., But I cannot find how to make that little highlight at the top of the active tab.
The funny thing is that I had done that, like 6 years ago, in a collection of themes for Gimp 2.8 I had released on DeviantArt. I had many requests to update them for v2.10.1x, which I kindly declined, because I have never dealt with the GTK2 theming engine since then.
However, like a week ago, I decided to give it a go (using Gimp 2.10.18) but I found that things I've done in the old themes do not work now (most probably because GTK+2 has evolved since then and/or because newer versions of Gimp probably use some things differently).
I've almost finished a Dark theme for Gimp 2.10.18, for which btw, v2.10.20 broke the ComboBox drop-down lists style. Most notably the appears-as-list property (which has been reported as problematic and it's deprecated in GTK3). In Gimp 2.10.18, with that property set to FALSE, all ComboBox drop-down lists were using the styles of the menus, so they were looking like popup menus. You know, the ones with the scrolling butons at their top and bottom, like the list of the layer Blend Modes in v2.10.18. In Gimp 2.10.20, regardless of how I set the "appears-as-list" property, all ComboBox drop-down lists look like regular TreeView lists, and once again I cannot find how to disable the border/shadow around the popup: https://prnt.sc/sz5e7a
So, that's a second thing I would like to know how to solve, if possible.
I've tested Gimp 2.10.20's default dark theme, and I confirmed that indeed the layer Blend Modes list has been brought back to be a regular list (its appears-as-list property is set to FALSE, but changing it to TRUE doesn't make any difference, just like it doesn't with my theme anymore). The reason it looks as a popup menu is because the default themes overlay everything with images (found in the ./ui/ folder). I guess going for uniform looks across different OSes, so menus and TreeView lists are both using the same background image. But if you look for it you will see that in Gimp 2.10.20 the layer Blend Modes list does NOT have top & bottom scrolling buttons. Instead, it uses a regular vertical scrollbar, so it is a just a list.
Please excuse my long post, I tried to be as precise as I could, about my questions. Once again, if you know a better place I should ask, please let me know.
Greetings to all!
|
|
|
Windows + Wacom problem |
Posted by: bschu - 06-13-2020, 03:17 PM - Forum: General questions
- Replies (2)
|
|
Hello! First post.
I'm trying to track down a very annoying and persistent problem with GIMP in windows. Using latest most stable version. 2.10.18 I believe.
The problem is not really GIMP though. It is something to do with the Wacom tablet... OR... something to do with GTK or something which I know nothing about
When the problem happens, GIMP completely freezes. AND I get the same behavior with Krita software... HOWEVER... I found that I can still run Autodesk Sketchbook.
So here's a bunch of info.
1 - If I leave my usb Wacom tablet plugged in, things are normally fine.
2 - If I have to unplug the tablet, this is where the problem usually begins.
3 - When the bug happens, both GIMP and Krita will completely freeze up when I try to use the tablet pen. If I use the mouse it will still be ok, but the moment the pen touches the tablet it freezes.
4 - Other softwares seem to work fine all the time, including pressure sensitivity and everything.
5 - If I reboot the computer, and plugin the tablet AFTER windows is loaded, it will go back to being normal and everything works great (~~er... sometimes have to close and open GIMP again to make pressure sensitivity work... but I can live with that).
What is special about GIMP and Krita that makes this happen? They both freeze up "SOMETIMES" when something happens to the tablet. I was reading somewhere that GIMP uses GTK and GTK is a problem in Windows? Is it possible that both GIMP and Krita depend on GTK and that is why this is happening? If so, is there a way to restart GTK?
That you in advance for ANY INFO you can give me.
And here's some of my GIMP illustration if you are into that! https://www.bschu.net
|
|
|
Changing the default setting for 'Opacity' in the 'New Layer' Dialogue (Gimp 2.10.8) |
Posted by: Gerard - 06-13-2020, 12:19 PM - Forum: General questions
- Replies (3)
|
|
Today when I use the Layer | New Layer menu option the layer opacity defaults to 0.0
Previously it has always defaulted to 100.0 - I have no idea what triggered this change.
I have tried changing it to 100.0 and quitting Gimp - but when I reload and try again the default is back to 0.0
A change to 100.0 for the creation of a new layer does not even persist for a session, each and every time
Layer | New Layer is used the opacity reverts back to 0.0
I have RTFM'd and Searched, I can find no help on this.
Can someone please tell me how to reset the default opacity setting for the new layer dialogue?
Platform - Windows 10
Gimp - 2.10.8
|
|
|
How it is possible that Gimp while exporting histogram counts more pixels than there |
Posted by: niitard - 06-12-2020, 03:20 PM - Forum: General questions
- Replies (4)
|
|
Hello,
I'm currently learning programming in python, one of subject that i'm trying to cover now is working with image. So i wanted to created o program that's counting how many pixel of each colour is in my image (which is 10x10 pixel gray scale). So i created the image all black with 24 white pixel and my program, all works well. It counts 24 pixel of "255" and 76 of "0.
But here comes the problem:
when i have used the Gimp [color] -> [information] -> [export histogram] to file i got the results like this
Range start,Value
0 , 76.0
1 , 0.0
2 , 0.0
[...]
253 , 0.0
254 , 24.0
255 , 24.0
it looks like, the Gimp software counted white pixel two times, so when they are summed up that makes 24 + 24 + 76 = 124 , and yet the picture size is still 10x10 = 100
i've searched the internet but cant find the clue:
How it is possible that Gimp while exporting histogram counts more pixels than there are really in the picture?
Thank you for help
|
|
|
How do I change a specific colour in a specific layer? |
Posted by: AnyOldBiscuit - 06-12-2020, 01:41 PM - Forum: General questions
- Replies (5)
|
|
I want to change the colour of drawn lines from one shade of green to another. All the green lines are in one layer, except for a few which are in another layer (I also want to change these ones). I have tried the bucket fill tool, but it ends up filling in the edges so it no longer has anti-aliasing, end, as a consequence, also fills small gaps. Somehow, the bucket fill tool worked fine to change colour when I tested it on a blank canvas. How do I change the colour without affecting the entire image? I only want to change the pixels that make up the lines.
|
|
|
|