View Single Post
Old 09-23-2013, 03:24 PM   #6
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by twobob View Post
Thanks very much... I gave this go... seems to be ignored?

Will dig around in the guts see if I can figure out why. maybe baf knows.
Default kindle gtkrc file, which can be overridden using env variable (GTK2_RC_FILES), defines some styles for GtkScrollbar and GtkScrolledWindow:

Code:
style "kindle-scrollbar"
{
    GtkScrollbar::has-backward-stepper  = 0
    GtkScrollbar::has-forward-stepper   = 0
    GtkScrollbar::slider-width          = 16
    GtkScrollbar::trough-border         = 0

…

style "kindle-scrolled-window"
{
    GtkScrolledWindow::scrollbar-spacing = 2
}

…

class "GtkScrollbar" style "kindle-scrollbar"
class "GtkScrolledWindow" style "kindle-scrolled-window"
I remember I was able to change the look of scrollbars by modifying these styles. Did you try it?

EDIT:
I gave it a try.
Code:
[root@kindle root]# cat gtkrc
style "osmo-scrollbar"
{
       GtkScrollbar::slider-width          = 60
}
class "Gtk*Scrollbar" style "osmo-scrollbar"
[root@kindle root]# GTK2_RC_FILES=gtkrc ./osmo
It resizes scrollbars, but I am not sure it is a good solution. Now I remember I wanted to use it with skipstone, but finally decided it looks bad and takes too much space
Attached Thumbnails
Click image for larger version

Name:	screenshot_2013_09_23T22_36_56+0200.png
Views:	407
Size:	27.0 KB
ID:	111946  

Last edited by baf; 09-23-2013 at 04:41 PM. Reason: Edit: gave it a try
baf is offline   Reply With Quote