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 Sun 21 Dec 2014, 11:23
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Window title bar size and scrollbar width
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
revo

Joined: 11 Aug 2010
Posts: 2

PostPosted: 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?
pimg.jpg
 Description   
 Filesize   34.61 KB
 Viewed   1744 Time(s)

pimg.jpg

Back to top
View user's profile Send_private_message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: 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
View user's profile Send_private_message Visit_website 
CatDude


Joined: 03 Jan 2007
Posts: 1497
Location: UK

PostPosted: 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
View user's profile Send_private_message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: 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
View user's profile Send_private_message Visit_website 
CatDude


Joined: 03 Jan 2007
Posts: 1497
Location: UK

PostPosted: 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. Laughing
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
View user's profile Send_private_message 
revo

Joined: 11 Aug 2010
Posts: 2

PostPosted: Wed 11 Aug 2010, 17:21    Post_subject:  

Thanks guys. Golden replies, i appreciate that.
Back to top
View user's profile Send_private_message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: 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. Laughing
Never did get around to asking did I Laughing 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.
DefaultQTLookOfScrollBars.png
 Description   
 Filesize   507 Bytes
 Viewed   1667 Time(s)

DefaultQTLookOfScrollBars.png


_________________
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
View user's profile Send_private_message Visit_website 
CatDude


Joined: 03 Jan 2007
Posts: 1497
Location: UK

PostPosted: 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
.
shot.png
 Description   Is this what you are after, or am i missing something ?
 Filesize   37.41 KB
 Viewed   1748 Time(s)

shot.png


_________________

Back to top
View user's profile Send_private_message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Thu 12 Aug 2010, 17:33    Post_subject:  

Yes yes yes Very Happy Very Happy Very Happy . 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
View user's profile Send_private_message Visit_website 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Fri 13 Aug 2010, 08:41    Post_subject:  

Yep, got it how I like it. Thanks muchly Very Happy.
_________________
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
View user's profile Send_private_message Visit_website 
CatDude


Joined: 03 Jan 2007
Posts: 1497
Location: UK

PostPosted: Sat 14 Aug 2010, 05:55    Post_subject:  

Hi

abushcrafter wrote:
Yep, got it how I like it. Thanks muchly Very Happy.

You're welcome Cool

CatDude
.

_________________

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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