| Author |
Message |
revo
Joined: 11 Aug 2010 Posts: 2
|
Posted: Wed 11 Aug 2010, 05:30 Post subject:
Window title bar size and scrollbar width |
|
Hi, greetings to Puppy community from Athens, Greece.
I have a simple noob questions,
How do I change window title bar size and scrollbar width in basic theme?
| Description |
|
| Filesize |
34.61 KB |
| Viewed |
1128 Time(s) |

|
|
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1447 Location: England
|
Posted: Wed 11 Aug 2010, 10:02 Post subject:
|
|
The the scroll bar is set by the GTK theme. You can change the GTK theme by the app Chtheme. "Menu>Desktop>Chtheme". If you want the theme then you need to edit that theme which I don't know how to do.
If you are using JWM, which I think you are, then the title bar is done by the JWM theme. The title bar hight is controled by the <Height> tag in the <WindowStyle> tag in the file "/root/.jwm/jwmrc-theme" The other themes are in "/root/.jwm/themes" You can swith themes by "Menu>Desktop>JWM Configuration"
Example: | Code: | <WindowStyle>
<Font>Sans-12</Font>
<Width>5</Width>
<Height>20</Height>
<Active>
<Text>white</Text>
<Title>#4A5966</Title>
<!-- <Corner>#4A5966</Corner> -->
<Outline>black</Outline>
</Active>
<Inactive>
<Text>black</Text>
<Title>#DCDAD5</Title>
<!-- <Corner>#DCDAD5</Corner> -->
<Outline>black</Outline>
</Inactive>
</WindowStyle>
|
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
|
Back to top
|
|
 |
CatDude

Joined: 03 Jan 2007 Posts: 1355 Location: UK
|
Posted: Wed 11 Aug 2010, 11:36 Post subject:
|
|
Hello revo
Welcome to the kennels.
Let's assume for example,
that you are wanting to hack the Polished-Blue theme.
What you need to do is,
open up /usr/share/themes/Polished-Blue/gtk-2.0/gtkrc in Geany (or whatever text editor),
right click on it, and select Open As Text
At lines 21 and 22
you will see this:
| Code: | GtkRange::slider_width = 14
GtkRange::stepper_size = 14 |
Just change it to whatever you desire,
something like this for example:
| Code: | GtkRange::slider_width = 10
GtkRange::stepper_size = 10 |
Save your changes,
then go to Menu > Desktop > Chtheme
select any other theme, then select Polished-Blue
Click Apply, then click OK
You should now have skinny little scrollbars.
CatDude
.
_________________

|
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1447 Location: England
|
Posted: Wed 11 Aug 2010, 11:44 Post subject:
|
|
@CatDude Thanks muchly. I have been wanting to do that for a long long time. Could you face telling how to/what doc to read for getting scroll buttons set-up like in the default QT/KDE themes.
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
|
Back to top
|
|
 |
CatDude

Joined: 03 Jan 2007 Posts: 1355 Location: UK
|
Posted: Wed 11 Aug 2010, 14:28 Post subject:
|
|
Hello abushcrafter
| abushcrafter wrote: | | @CatDude Thanks muchly. I have been wanting to do that for a long long time. |
No problem mate.
I only looked into it because revo asked how to do it, and i am a curious little sod.
A quick google, and i soon had the answer.
| abushcrafter wrote: | | Could you face telling how to/what doc to read for getting scroll buttons set-up like in the default QT/KDE themes. |
I'd love to, if i knew anything about it, but i am not that familiar with KDE
Are you referring to a Puppy derivative (possibly dejan's KDPUP) by any chance,
if so i could always download it and have a play with it.
CatDude
.
_________________

|
|
Back to top
|
|
 |
revo
Joined: 11 Aug 2010 Posts: 2
|
Posted: Wed 11 Aug 2010, 17:21 Post subject:
|
|
Thanks guys. Golden replies, i appreciate that.
|
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1447 Location: England
|
Posted: Thu 12 Aug 2010, 11:07 Post subject:
|
|
| CatDude wrote: | | abushcrafter wrote: | | @CatDude Thanks muchly. I have been wanting to do that for a long long time. |
A quick google, and i soon had the answer. |
I think I did do a small amount of searching but didn't find any thing. Could I have you search terms please?
| CatDude wrote: | | abushcrafter wrote: | | @CatDude Thanks muchly. I have been wanting to do that for a long long time. |
I only looked into it because revo asked how to do it, and i am a curious little sod.  | Never did get around to asking did I ish.
| CatDude wrote: | | abushcrafter wrote: | | Could you face telling how to/what doc to read for getting scroll buttons set-up like in the default QT/KDE themes. |
I'd love to, if i knew anything about it, but i am not that familiar with KDE
Are you referring to a Puppy derivative (possibly dejan's KDPUP) by any chance,
if so i could always download it and have a play with it.
CatDude
. | I have added a attachment a screenshot of the default QT look of scrollbars.
| Description |
|
| Filesize |
507 Bytes |
| Viewed |
1055 Time(s) |

|
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
|
Back to top
|
|
 |
CatDude

Joined: 03 Jan 2007 Posts: 1355 Location: UK
|
Posted: Thu 12 Aug 2010, 15:57 Post subject:
|
|
Hello abushcrafter
| abushcrafter wrote: | | Could I have you search terms please? |
Certainly mate, here you go: how to resize scrollbars in gtk theme
It was the second link: [ubuntu] Scrollbar resizing - Ubuntu Forums
that gave me the answer.
| abushcrafter wrote: | | I have added a attachment a screenshot of the default QT look of scrollbars. |
I'm not sure exactly what it is you are after,
if it is the double arrows at the bottom of the scrollbar, then i think we may be in business. (see pic)
Let's use the Polished-Blue theme once again as the guinea pig.
Open up /usr/share/themes/Polished-Blue/gtk-2.0/gtkrc in Geany (or whatever text editor),
right click on it, and select Open As Text
Now add the following:
| Code: | GtkScrollbar::has-secondary-forward-stepper = 0
GtkScrollbar::has-secondary-backward-stepper = 1 |
just beneath:
| Code: | GtkRange::slider_width = 14
GtkRange::stepper_size = 14 |
Please note: In the image below, these are both set to 16
Save your changes,
then go to Menu > Desktop > Chtheme
select Polished-Blue
Click Apply, then click OK
Hope this helps
CatDude
.
P.S
I included the line:
| Code: | | GtkScrollbar::has-secondary-forward-stepper = 0 |
just in case you fancied having two arrows at the top as well,
in which case you would change the 0 for a 1
.
| Description |
Is this what you are after, or am i missing something ? |
| Filesize |
37.41 KB |
| Viewed |
1058 Time(s) |

|
_________________

|
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1447 Location: England
|
Posted: Thu 12 Aug 2010, 17:33 Post subject:
|
|
Yes yes yes . Now to try this out.
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
|
Back to top
|
|
 |
abushcrafter

Joined: 30 Oct 2009 Posts: 1447 Location: England
|
Posted: Fri 13 Aug 2010, 08:41 Post subject:
|
|
Yep, got it how I like it. Thanks muchly .
_________________ adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
|
|
Back to top
|
|
 |
CatDude

Joined: 03 Jan 2007 Posts: 1355 Location: UK
|
Posted: Sat 14 Aug 2010, 05:55 Post subject:
|
|
Hi
| abushcrafter wrote: | Yep, got it how I like it. Thanks muchly . |
You're welcome
CatDude
.
_________________

|
|
Back to top
|
|
 |
|