Page 1 of 1

Window title bar size and scrollbar width

Posted: Wed 11 Aug 2010, 09:30
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?

Posted: Wed 11 Aug 2010, 14:02
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> 

Posted: Wed 11 Aug 2010, 15:36
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
.

Posted: Wed 11 Aug 2010, 15:44
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.

Posted: Wed 11 Aug 2010, 18:28
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
.

Posted: Wed 11 Aug 2010, 21:21
by revo
Thanks guys. Golden replies, i appreciate that.

Posted: Thu 12 Aug 2010, 15:07
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.

Posted: Thu 12 Aug 2010, 19:57
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
.

Posted: Thu 12 Aug 2010, 21:33
by abushcrafter
Yes yes yes :D :D :D . Now to try this out.

Posted: Fri 13 Aug 2010, 12:41
by abushcrafter
Yep, got it how I like it. Thanks muchly :D.

Posted: Sat 14 Aug 2010, 09:55
by CatDude
Hi
abushcrafter wrote:Yep, got it how I like it. Thanks muchly :D.
You're welcome 8)

CatDude
.