Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 16:06
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
gtkrc file: how to define tab background color? [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1825
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 01 Oct 2012, 11:42    Post subject:  gtkrc file: how to define tab background color? [SOLVED]  

Hello,
Does anybody knows, inside a "gtkrc" gtk theme file, where tab background color can be defined (to suit with other defined colors). Below, for example, pnethood, which contains tabs and shows them... Grey.
Most of colors seem to be set in this part of the gtkrc configuration file but all I tried to do has no effect on. Is a special line missing? Or is this color defined anywhere else?
Quote:
font_name = "DejaVu Sans 12"
fg[NORMAL] = "#000000" #Foreground text of nearly all widgets (not editor text)
fg[PRELIGHT] = "#000000" #Foreground text as you mouse-over something
fg[ACTIVE] = "#000000" #Foreground text of non-selected but available widgets
fg[SELECTED] = "#000000" #The foreground of something as you click on it, or which is already selected
fg[INSENSITIVE] = "#8B8989" #Foreground text of inactive buttons, etc.

bg[NORMAL] = "#FFF7AE" #The background of every non-clickable/non-active element
bg[PRELIGHT] = "#FFFFFF" #??
bg[ACTIVE] = "#FFf265" #The background of Evolutions's icons, selected folder, shorcut panel, etc.
bg[SELECTED] = "#fff47f" #The background of something as you click on it, or which is already selected
bg[INSENSITIVE] = "#fffce5" #Background of un-clickable widgets

base[NORMAL] = "#ffffff" #Background for just about everything (editor windows, Evolution's folders, etc.)
base[SELECTED] = "#fff265" #Background of selected text in a list when window is in foreground
base[ACTIVE] = "#fff7bf" #Background of selected text in a list when window not in foreground
base[PRELIGHT] = "#ffffff" #??
base[INSENSITIVE]= "#fffce5" #Background of un-clickable widgets

# text[INSENSITIVE]= "#9B9B9B" #Un-selectable text
text[SELECTED] = "#000000" #Foreground of selected text in a list when window is in foreground
text[ACTIVE] = "#000000" #Certain highlighted/selected things
# text[PRELIGHT] = "#353535"

I made many other themes, but never encountered this problem! Shocked

Thank you for your attention.

Cordialement.
171252_380x562_easyshot.png
 Description   
 Filesize   36.49 KB
 Viewed   354 Time(s)

171252_380x562_easyshot.png


_________________


Last edited by Argolance on Tue 02 Oct 2012, 06:22; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Mon 01 Oct 2012, 14:45    Post subject:  

Hello, argolance.

A test with gcolor2 revealed that it is none of the defined colours. (See pic.)
Maybe this data panel is fed into pnethood by some other progr? gxmessage, maybe? Or it may be pre-defined by the GTK theme. Have you tried changing the GTK theme?

Best of luck ! Smile
colourCCCCCC.jpg
 Description   
 Filesize   29.13 KB
 Viewed   350 Time(s)

colourCCCCCC.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Tue 02 Oct 2012, 04:48    Post subject:  

Code:
style "notebook"
{
 engine "pixmap" {
    image
      {
        function        = EXTENSION
   recolorable     = TRUE
   state      = ACTIVE
   file            = "tab2.png"
   border          = { 6,6,6,6 }
   stretch         = TRUE
      }

    image
      {
        function        = EXTENSION
   recolorable     = TRUE
   file            = "tab1.png"
   border          = { 6,6,6,6 }
   stretch         = TRUE
      }
  }
}

or
Code:
style "notebook"
{
  engine "pixmap"
    {
    image
      {
        function        = EXTENSION
   recolorable     = TRUE
   state      = ACTIVE
   file            = "notebook1.png"
   border          = { 6,6,6,6 }
   stretch         = TRUE
      }

    image
      {
        function        = EXTENSION
   recolorable     = TRUE
   file            = "notebook2.png"
   border          = { 6,6,6,6 }
   stretch         = TRUE
      }
    image
      {
        function        = BOX_GAP
   recolorable     = TRUE
   file            = "up.png"
   border          = { 2,2,2,2 }
   stretch         = TRUE
   gap_file        = "blank.png"
   gap_border      = { 0, 0, 0, 0 }
   gap_start_file  = "blank.png"
   gap_start_border= { 0, 0, 0, 0 }
   gap_end_file    = "blank.png"
   gap_end_border  = { 0, 0, 0, 0 }
      }
  }
}

then at the end of the gtkrc file put:
class "GtkNotebook" style "notebook"

not sure if you can use just colors?

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1825
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Tue 02 Oct 2012, 06:15    Post subject:  

Hello,
Thank you for answering.
@musher0
Quote:
A test with gcolor2 revealed that it is none of the defined colours. (See pic.)
The way I came to this conclusion was a bit laborious Confused : I commented lines or replaced the initial colors with #FF00FF (magenta) to see what occurs... On the other side, I learnt a lot about this gtkrc file!
Quote:
Maybe this data panel is fed into pnethood by some other progr?
This was just an example: this occured with all GUIs containing tabs!
Quote:
Have you tried changing the GTK theme
Of course, and it was correct!

@technosaurus
I replaced the second proposal which was already (and word for word!), present in the existing gtkrc file (which served me as work-base) with the first one: bingo!
This works perfectly. Very Happy

Cordialement.
Thank you!
120859_1920x1200_easyshot.png
 Description   
 Filesize   39.41 KB
 Viewed   341 Time(s)

120859_1920x1200_easyshot.png


_________________

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0678s ][ Queries: 13 (0.0050s) ][ GZIP on ]