Window title bar size and scrollbar width

Booting, installing, newbie
Post Reply
Message
Author
revo
Posts: 2
Joined: Wed 11 Aug 2010, 06:52

Window title bar size and scrollbar width

#1 Post by revo »

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?
Attachments
pimg.jpg
(34.61 KiB) Downloaded 1908 times

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#2 Post by abushcrafter »

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: Select all

<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> 
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
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/

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#3 Post by CatDude »

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: Select all

GtkRange::slider_width            = 14
GtkRange::stepper_size            = 14
Just change it to whatever you desire,
something like this for example:

Code: Select all

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
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#4 Post by abushcrafter »

@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.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
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/

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#5 Post by CatDude »

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. :lol:
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
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

revo
Posts: 2
Joined: Wed 11 Aug 2010, 06:52

#6 Post by revo »

Thanks guys. Golden replies, i appreciate that.

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#7 Post by abushcrafter »

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. :lol:
Never did get around to asking did I :lol: 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.
Attachments
DefaultQTLookOfScrollBars.png
(507 Bytes) Downloaded 1800 times
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
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/

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#8 Post by CatDude »

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: Select all

GtkScrollbar::has-secondary-forward-stepper = 0
GtkScrollbar::has-secondary-backward-stepper = 1
just beneath:

Code: Select all

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: Select all

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
.
Attachments
shot.png
Is this what you are after, or am i missing something ?
(37.41 KiB) Downloaded 1897 times
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#9 Post by abushcrafter »

Yes yes yes :D :D :D . Now to try this out.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
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/

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#10 Post by abushcrafter »

Yep, got it how I like it. Thanks muchly :D.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
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/

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#11 Post by CatDude »

Hi
abushcrafter wrote:Yep, got it how I like it. Thanks muchly :D.
You're welcome 8)

CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

Post Reply