Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: Malá šířka posuvníků - Xubuntu 11.10 (Xfce 4.8)  (Přečteno 1135 krát)

majakmp3

  • Aktivní člen
  • *
  • Příspěvků: 451
Malá šířka posuvníků - Xubuntu 11.10 (Xfce 4.8)
« kdy: 31 Ledna 2012, 15:09:24 »
Nevyhovuje mi malá šířka posuvníků (těžko se do něj člověk trefuje), ale nevím, kde tuto vlastnost nastavit. Vypadá to, že v Xfce 4.8 je šířka posuvníku nezávislá na vybraném témátku. (Mění se kde co, ale posuvník zůstává pořád stejný).

V Ubuntu stačilo editovat zvolené témátko:
/usr/share/themes/Ambiance/gtk-2.0/gtkrc

konkrétně číselná hodnota v následujícím řádku:
Kód: [Vybrat]
GtkScrollbar::slider-width = 23 a bylo, v Xubuntu to však nefunguje  :P

Aktuálně používám theme: Kiwi
  • v /usr/share/themes/Kiwi/xfwm4/themerc najdete pouze toto:
Kód: [Vybrat]
active_text_color=#ffffff
button_offset=1
button_spacing=-1
full_width_title=false
maximized_offset=0
shadow_delta_height=2
shadow_delta_width=1
shadow_delta_x=1
shadow_delta_y=1
shadow_opacity=60
show_app_icon=true
title_horizontal_offset=1
title_shadow_active=frame
title_shadow_inactive=false
title_vertical_offset_active=1
title_vertical_offset_inactive=1
  • v /usr/share/themes/Kiwi/gtk-2.0/gtkrc najdete toto:
Kód: [Vybrat]
# Based on Bluecurve
# Original theme GTK2 theme created by Richard Stellingwerff, Emil Jacobs and Daniel Borgmann.
# theme-GreenMod alteration by slackdude (Claudio Miranda)
# modified by Raceimaztion to use the Murrina engine

style "theme-default"
{
# Old Settings
#  GtkButton      ::default_border    = { 0, 0, 0, 0 }
#  GtkRange       ::trough_border     = 0
#  GtkPaned       ::handle_size       = 6
#  GtkRange       ::slider_width      = 40
#  GtkRange       ::stepper_size      = 15
#  GtkScrollbar   ::min_slider_length = 30
#  GtkScrollbar   ::has_secondary_backward_stepper = 1
#  GtkCheckButton ::indicator_size    = 12
#  GtkMenuBar     ::internal-padding  = 0
#  GtkTreeView    ::expander_size     = 14
#  GtkExpander    ::expander_size     = 16
########
# Style Properties
########
GtkButton      ::child-displacement-x = 1
GtkButton      ::child-displacement-y = 1
GtkButton      ::default-border       = { 0, 0, 0, 0 }
GtkCheckButton ::indicator-size       = 14

GtkPaned       ::handle-size          = 6

GtkRange       ::trough-border        = 2
GtkRange       ::slider-width         = 40
GtkRange       ::stepper-size         = 13

GtkScale       ::slider-length        = 15
GtkScale       ::trough-side-details  = 0
GtkScrollbar   ::min-slider-length    = 30

GtkMenuBar     ::internal-padding     = 0
GtkExpander    ::expander-size        = 16
GtkToolbar     ::internal-padding     = 0
GtkTreeView    ::expander-size        = 14
GtkTreeView    ::vertical-separator   = 0

GtkMenu        ::horizontal-padding   = 0
GtkMenu        ::vertical-padding     = 0

# GtkMenuBar     ::shadow_type          = GTK_SHADOW_NONE
# GtkToolbar     ::shadow_type          = GTK_SHADOW_NONE

  xthickness = 1
  ythickness = 1

  fg[NORMAL]        = "#101010" # very dark gray #101010
  fg[PRELIGHT]      = "#ffffff" # white
  fg[ACTIVE]        = "#000000" # black
  fg[SELECTED]      = "#ffffff" # white
  fg[INSENSITIVE]   = "#b5b3ac" # dark beige / grey

  bg[NORMAL]        = "#efebe7" # light beige / grey
  bg[PRELIGHT]      = "#72a952" # greenish
  bg[ACTIVE]        = "#b4afaa" # darkish beige / grey
  bg[SELECTED]      = "#72a952" # greenish
  bg[INSENSITIVE]   = "#efebe7" # light beige / grey

  base[NORMAL]      = "#ffffff" # white
  base[PRELIGHT]    = "#72a952" # greenish
  base[ACTIVE]      = "#a29e8e" # dark beige / grey
  base[SELECTED]    = "#72a952" # greenish
  base[INSENSITIVE] = "#efebe7" # light beige / grey

  text[NORMAL]      = "#000000" # black
  text[PRELIGHT]    = "#000000" # black
  text[ACTIVE]      = "#ffffff" # white
  text[SELECTED]    = "#ffffff" # white
  text[INSENSITIVE] = "#b5b3ac" # dark beige / grey

  engine "murrine"  {
    scrollbarstyle = 2
    contrast = 0.8
    glazestyle = 0 # 0 = flat hilight, 1 = curved hilight (default), 2 = concave style
    gradient_shades     = {1.15,1.07,1.02,0.9} # default: {1.1,1.0,1.0,1.1}
    glowstyle     = 4
   roundness            = 2 # 0 = squared, 1 = smooth squared, >= 2 round
    menubarstyle = 2 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
    listviewheaderstyle  = 1 # 0 = flat, 1 = glass
    menuitemstyle = 0 # 0 = flat, 1 = glassy, 2 = striped
    menubaritemstyle     = 1 # 0 = menuitem look, 1 = button look
    menustyle           = 0     # 0 = no vertical menu stripe, 1 = display vertical menu stripe
    animation          = TRUE
   rgba = TRUE
#MOD
sliderstyle         = 1     # 0 = nothing added, 1 = handles
stepperstyle        = 1     # 0 = standard, 1 = integrated stepper handles, 2 = unknown
toolbarstyle     = 1    # 0 = flat, 1 = glassy, 2 = gradient
reliefstyle     = 2     # 0 = flat, 1 = inset, 2 = shadow
listviewstyle       = 1     # 0 = nothing, 1 = dotted
highlight_shade     = 1.07  # set highlight amount for buttons or widgets
lightborder_shade   = 1.36   # sets lightborder amount for buttons or widgets
lightborderstyle    = 1     # 0 = lightborder on top side, 1 = lightborder on all sides
# Old, from Clearlooks engine:
#    menubarstyle = 1 # 0 = flat, 1 = glassy, 2 = gradient
#    menuitemstyle     = 1       # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
#    listviewitemstyle = 1       # 0 = flat, 1 = 3d-ish (gradient)
#    progressbarstyle  = 0       # 0 = candy bar, 1 = flat
  }
}

style "theme-wide" = "theme-default"
{
  xthickness = 2
  ythickness = 2
}

style "theme-button" = "theme-default"
{
  xthickness = 3
  ythickness = 3
}

style "theme-check" = "theme-button"
{
  text[NORMAL] = "#2f3941" # greenish
  text[PRELIGHT] = "#3c4a53" # greenish
}

style "theme-notebook" = "theme-wide"
{
  bg[NORMAL] = "#eae4df"
  bg[INSENSITIVE] = "#eae4df"
}

style "theme-tasklist" = "theme-default"
{
  xthickness = 5
  ythickness = 3
}

style "theme-menu" = "theme-default"
{
  xthickness = 2
  ythickness = 1
  bg[NORMAL] = "#f8f5f2"
}

style "theme-menu-item" = "theme-default"
{
  xthickness = 3
  ythickness = 2
  fg[PRELIGHT] = "#ffffff"
  text[PRELIGHT] = "#ffffff"
#  text[NORMAL] = "#ffffff"
}

style "theme-menu-itembar" = "theme-default"
{
  xthickness = 3
  ythickness = 2
  bg[NORMAL] = "#72a952"
}

style "theme-tree" = "theme-default"
{
  xthickness = 2
  ythickness = 2
}

style "theme-frame-title" = "theme-default"
{
  fg[NORMAL] = "#2a2a2a"
}

style "theme-tooltips" = "theme-default"
{
  xthickness = 4
  ythickness = 4
  bg[NORMAL] = { 1.0,1.0,0.75 }
}

style "theme-progressbar" = "theme-default"
{
  xthickness = 1
  ythickness = 1

  fg[PRELIGHT]  = "#ffffff"
}

style "theme-combo" = "theme-default"
{
  xthickness = 2
  ythickness = 3
}

style "theme-scrollbar" {
    bg[SELECTED] = "#72a952"
}
style "misc-panel" = "theme-default"
{
   bg_pixmap[NORMAL] = "panel-background.svg"
#   bg_pixmap[PRELIGHT]      = "foo.bar"
#   bg_pixmap[ACTIVE]        = "foo.bar"
#   bg_pixmap[SELECTED]      = "foo.bar"
#   bg_pixmap[INSENSITIVE]   = "foo.bar"
}

style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 0
base[NORMAL] = "#000000"
base[SELECTED] = "#f3c422"
base[ACTIVE] = "#60d01d"
fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#f3c422"
fg[ACTIVE] = "#60d01d" }

# widget styles
class "GtkWidget" style "theme-default"
class "GtkButton" style "theme-button"
class "GtkCombo"  style "theme-button"
class "GtkRange"  style "theme-wide"
class "GtkFrame"  style "theme-wide"
class "GtkMenu"   style "theme-menu"
class "GtkEntry"  style "theme-button"
class "GtkMenuItem"    style "theme-menu-item"
class "GtkMenuBar"     style "theme-menu-itembar"
class "GtkStatusbar"   style "theme-wide"
class "GtkNotebook"    style "theme-notebook"
class "GtkProgressBar" style "theme-progressbar"
class "GtkCheckButton" style "theme-check"
class "GtkRadioButton" style "theme-check"
class "GtkScrollbar" style "theme-scrollbar"

widget_class "*MenuItem.*" style "theme-menu-item"

# combobox stuff
widget_class "*.GtkComboBox.GtkButton" style "theme-combo"
widget_class "*.GtkCombo.GtkButton"    style "theme-combo"

# tooltips stuff
widget_class "*.tooltips.*.GtkToggleButton" style "theme-tasklist"
widget "gtk-tooltip*" style "theme-tooltips"

# treeview stuff
widget_class "*.GtkTreeView.GtkButton" style "theme-tree"
widget_class "*.GtkCTree.GtkButton" style "theme-tree"
widget_class "*.GtkList.GtkButton" style "theme-tree"
widget_class "*.GtkCList.GtkButton" style "theme-tree"
widget_class "*.GtkFrame.GtkLabel" style "theme-frame-title"

# notebook stuff
widget_class "*.GtkNotebook.*.GtkEventBox" style "theme-notebook"
widget_class "*.GtkNotebook.*.GtkViewport" style "theme-notebook"

# panel stuff:
class "*Panel*" style "misc-panel"
class "*Separator*" style "misc-panel"

# xfce4 stuff
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

Zde jsem všechny hodnoty slider_width změnil z původních 23 na 40, uložil, restartoval a nic se nezměnilo.

Poraďte prosím, jak posuvníky rozšířit.

Děkuji.

sabraq

  • Závislák
  • ***
  • Příspěvků: 3589
  • Bootloader-není téma k hovoru,ani zbytný prostor
Re:Malá šířka posuvníků - Xubuntu 11.10 (Xfce 4.8)
« Odpověď #1 kdy: 16 Února 2012, 00:03:09 »
Noo, sice nevím přesně kam, ale někam jako do nastavení panelu bych se podíval v gnome pomocí gconf-editor. A v xubuntu pomocí xfce4-settings-editor. Co bych asi nedělal nikdy - editovat něco v /usr/share/...
PP v kolečku - není licence,pouze upozornění na reklamu
"Dress code" - oblečení podle předpisu(ne kódované oblečení)
CC v kolečku - je licence,značí,že se někdo nesmírně snaží

 

Provoz zaštiťuje spolek OpenAlt.