It is currently Thu Jul 25, 2024 4:14 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Theming question
PostPosted: Fri Sep 02, 2016 11:51 am  (#21) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
mahvin wrote:
Thanks, Wallace,
that did the trick.
Just when you think you know Windows,
they throw 10 at ya,
and it comes with a small learning curve.

I know how you feel.
Pleased that it worked for you.

I'm curious to know if your Personalization Settings were at default,
as I mentioned previously?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Theming question
PostPosted: Fri Sep 02, 2016 1:18 pm  (#22) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Actually, no. I had set my theme to dark with contrast. It was at default prior to me making those changes. I was expecting my GIMP title bar to be black like the rest of the windows, but as the image shows, its white.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Theming question
PostPosted: Fri Sep 02, 2016 1:51 pm  (#23) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
mahvin wrote:
Actually, no.
I had set my theme to dark with contrast.
It was at default prior to me making those changes.
I was expecting my GIMP title bar to be black like the rest of the windows,
but as the image shows,
its white.

Oh,
okay thanks. :bigthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Theming question
PostPosted: Fri Sep 02, 2016 2:09 pm  (#24) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
In any case, I'm happy with the changes as it now matches my personal GIMP theme.

Image

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Theming question
PostPosted: Fri Sep 02, 2016 2:52 pm  (#25) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
mahvin wrote:
In any case,
I'm happy with the changes as it now matches my personal GIMP theme.

Image

:coolthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Theming question
PostPosted: Fri Sep 02, 2016 9:06 pm  (#26) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
mahvin wrote:
In any case, I'm happy with the changes as it now matches my personal GIMP theme.

Definitely dig the green. I really need to figure theming out.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 9:47 am  (#27) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Image

Anyone know how to get the new opened image format in 2.8.18 to show the x as white instead of black?

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 10:29 am  (#28) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
mahvin wrote:
[ Image ]

Anyone know how to get the new opened image format in 2.8.18 to show the x as white instead of black?


It's certainly possible by creating an appropriate image and making sure the theme uses the new image:
Attachment:
Untitled.png
Untitled.png [ 5.39 KiB | Viewed 1161 times ]


Which theme are you using?

Kevin


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 10:34 am  (#29) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
That's part of the problem. I am using an older theme before 2.8.18 (Rod's blue theme), and the latest release of GIMP has the "opened" images that float at the top left of the window. I don't see anywhere on the gtkrc file to fix this. I opened the small theme with GIMP to see what was new, and couldn't get much out of that. I just want the x to be white, not be an image.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 10:52 am  (#30) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
This is going to be fun without seeing your theme directory...

That icon is controlled by a stock-id gimp-close:
  stock["gimp-close"] =
  {
    { "12/gimp-close.png", *, *, *            }
  }

I have it in a sub-directory called "12" (because all the icons in it are 12x12 pixels)

If you already have an assignment for gimp-close in the gtkrc, then find the image file it's pointing to and change it from black to whatever you want.

If you don't have an assignment already, then find some other "stock[" assignment, and add a section for the gimp-close id, pointing to your new close icon.

Kevin

With your avatar as the close icon:
Attachment:
Untitled.png
Untitled.png [ 5.46 KiB | Viewed 1153 times ]


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 11:20 am  (#31) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Kevin,

Many thanks! That did the trick. I simply added your code to the gtkrc and created the new stock image.

Image

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 11:43 am  (#32) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
mahvin wrote:
Kevin,

Many thanks! That did the trick. I simply added your code to the gtkrc and created the new stock image.

[ Image ]


Looks like you could do with a gimp-menu-right as well:
Attachment:
Untitled.png
Untitled.png [ 8.52 KiB | Viewed 1365 times ]


  stock["gimp-menu-right"] =
  {
    { "12/gimp-menu-right.png", *, *, "gtk-menu" }
  }


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 12:02 pm  (#33) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Kevin,

I had to remove the gtk-menu in order for mine to work, however, what about the other arrows like this one, that opens and detaches dockable windows? To the right of Tool Options.

Image

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 5:15 pm  (#34) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
The last several posts here have really answered some questions for me. Thanks, guys.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 6:16 pm  (#35) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I've run the gauntlet of what that little arrow could possibly be called so, until someone on the off chance knows what it's named in the gtkrc, I'l have to live with it being black.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Theming question
PostPosted: Tue Sep 06, 2016 7:21 pm  (#36) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Well, on a WILD hunch, I tried cheating, and it worked.

Seeing as Kevin brought up the previous stock code, I simply made a second one and named it as such:

stock["gimp-menu-left"] =
{
{ "gimp-menu-left.png", *, *, * }

Saved the file, created a white left arrow image and presto, it's good to go.

Image

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Theming question
PostPosted: Wed Sep 07, 2016 8:53 am  (#37) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14730
Location: USA
I've learned a few new things in this thread myself. For 1 i need to take a peek at the newer gtkrc files. Thanks guys! :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Theming question
PostPosted: Wed Sep 07, 2016 1:57 pm  (#38) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
Just found a boatload of information under
/usr/share/gtk-doc/html/libgimp*
that is well above my head. But it looks like it might be useful to some of you if you haven't already seen these files. All sorts of html files explaining the object hierarchies, deprecated code, and other stuff that made my eyes glaze over. Obviously the location on my Linux box won't be the same as a Windows box. But I doubt the subdirectories will be named much differently. Just thought I'd pass it along in case this isn't already common knowledge. If it is already common knowledge, my apologies for wasting your time.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Theming question
PostPosted: Sun Sep 11, 2016 9:39 am  (#39) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Kevin,

I noticed that I missed an arrow (The multi-directional arrow). Is there a specific code parameter for that arrow as well. I searched high and low trying to find it. I just think I am not identifying it correctly. [Edit: thought I found it on Github under pan, but that was not it, either.]

Image

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Theming question
PostPosted: Sun Sep 11, 2016 4:09 pm  (#40) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
mahvin wrote:
Kevin,

I noticed that I missed an arrow (The multi-directional arrow). Is there a specific code parameter for that arrow as well. I searched high and low trying to find it. I just think I am not identifying it correctly. [Edit: thought I found it on Github under pan, but that was not it, either.]


Hi Mahvin

That is the stock-id gimp-navigation:
  stock["gimp-navigation"] =
  {
    { "16/gimp-tool-move.png", *, *, "gtk-menu" },
    { "16/gimp-tool-move.png", *, *, *            }
  }


The way I went about finding that, is to look through the set of image files for the matching icon, then look through the corresponding gtkrc file.

However, to get to that point I've been rummaging through the source code, trying to match the IDs used in source, with the corresponding usage in the user-interface.

For example, I can see that the tool-tip for the menu item Window>>Dockable Dialogs>>Navigation is "Open the display navigation dialog", so I'd search through the source code files (*.c) for that string:
Searching for: Open the display navigation dialog
app\actions\dialogs-actions.c(96): NC_("dialogs-action", "Open the display navigation dialog"),
Found 1 occurrence(s) in 1 file(s)


Then looking at the file app\actions\dialogs-actions.c:
    { "dialogs-navigation", GIMP_STOCK_NAVIGATION, NC_("dialogs-action",
                                                       "Na_vigation"), NULL,
        NC_("dialogs-action", "Open the display navigation dialog"),
        "gimp-navigation-view",
        GIMP_HELP_NAVIGATION_DIALOG },


So then I search for gimp-navigation-view, which leads to:
Searching for: gimp-navigation-view
app\actions\dialogs-actions.c(97): "gimp-navigation-view",
app\actions\view-commands.c(346): "gimp-navigation-view");
app\dialogs\dialogs.c(375): DOCKABLE ("gimp-navigation-view",
Found 3 occurrence(s) in 3 file(s)


And in app\dialogs\dialogs.c
  /*  display related  */
  DOCKABLE ("gimp-navigation-view",
            N_("Navigation"), N_("Display Navigation"), GIMP_STOCK_NAVIGATION,
            GIMP_HELP_NAVIGATION_DIALOG,
            dialogs_navigation_editor_new, 0, FALSE),


And it's the GIMP_STOCK_NAVIGATION that's of interest (GIMP_STOCK_ are the icons)
So searching again, this time in the C header files (*.h)
Searching for: GIMP_STOCK_NAVIGATION
libgimpwidgets\gimpstock.h(199): #define GIMP_STOCK_NAVIGATION               "gimp-navigation"
Found 1 occurrence(s) in 1 file(s)


So it's showing that the gtkrc stock id is "gimp-navigation"

Kevin


Top
Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Stupid Question II

9

No new posts Gimp Art Question

5

No new posts GIMP Question

3

No new posts Attachment(s) new to gimp and have a question

3

No new posts Digikam question

1



* Login  



Powered by phpBB3 © phpBB Group