diff --git a/themes/gtk-3.0-base/common/scale.scss b/themes/gtk-3.0-base/common/scale.scss index 87ed3ad..a994a7d 100644 --- a/themes/gtk-3.0-base/common/scale.scss +++ b/themes/gtk-3.0-base/common/scale.scss @@ -9,59 +9,111 @@ scale { - padding: 6px; + @include __wintc_apply_props($scale_styles); + + marks + { + @include __wintc_apply_props($scale_marks_styles); + } + + indicator + { + color: $scale_mark_color; + } + + slider + { + @include __wintc_apply_props($scale_slider_styles); + } + + trough + { + @include __wintc_apply_props($scale_trough_styles); + } + + value + { + padding-bottom: 6px; + } &.horizontal { - min-height: 21px; + @include __wintc_apply_props($scale_horz_styles); + + min-height: $scale_slider_length; marks { - margin-top: 11px; + @include __wintc_apply_props($scale_horz_marks_styles); mark { indicator { - min-width: 1px; - min-height: 3px; + min-width: $scale_mark_thickness; + min-height: $scale_mark_length; } - - &:first-child indicator, - &:last-child indicator + + @if $scale_end_mark_length != $scale_mark_length { - min-height: 4px; + &:first-child indicator, + &:last-child indicator + { + min-height: $scale_end_mark_length; + } } } } slider { - background-image: url("../Resources/gtk-3.0/scale_horz_slider.png"); - margin: -11px -6px -10px -5px; - min-height: 4px; + @include __wintc_apply_props_excluding( + $scale_horz_thumb_styles, + "margin-bottom", + "margin-left", + "margin-right", + "margin-top", + "min-height" + ); + + $l_margin_bottom: floor($scale_slider_length / 2) * -1; + $l_margin_left: floor($scale_slider_thickness / 2) * -1; + $l_margin_right: ceil($scale_slider_thickness / 2) * -1; + $l_margin_top: ceil($scale_slider_length / 2) * -1; + + margin: $l_margin_top $l_margin_right $l_margin_bottom $l_margin_left; + min-height: __wintc_get_prop_with_fallbacks( + "border-top-width", + $scale_horz_trough_styles, + $scale_trough_styles + ) + + __wintc_get_prop_with_fallbacks( + "border-bottom-width" + $scale_horz_trough_styles, + $scale_trough_styles + ); &:hover { - background-image: url("../Resources/gtk-3.0/scale_horz_slider_hover.png"); + @include __wintc_apply_props($scale_horz_thumb_hover_styles); } &:active { - background-image: url("../Resources/gtk-3.0/scale_horz_slider_active.png"); + @include __wintc_apply_props($scale_horz_thumb_press_styles); } &:disabled { - background-image: url("../Resources/gtk-3.0/scale_horz_slider_inactive.png"); + @include __wintc_apply_props($scale_horz_thumb_inactive_styles); } } trough { - border-image: url("../Resources/gtk-3.0/scale_horz_trough.png") 2 2 2 2 stretch; + @include __wintc_apply_props($scale_horz_trough_styles); } &.marks-after, @@ -72,22 +124,22 @@ scale slider { - background-image: url("../Resources/gtk-3.0/scale_horz_slider_arrow.png"); - + @include __wintc_apply_props($scale_horz_arrow_styles); + &:hover { - background-image: url("../Resources/gtk-3.0/scale_horz_slider_arrow_hover.png"); + @include __wintc_apply_props($scale_horz_arrow_hover_styles); } &:active { - background-image: url("../Resources/gtk-3.0/scale_horz_slider_arrow_active.png"); + @include __wintc_apply_props($scale_horz_arrow_press_styles); } &:disabled { - background-image: url("../Resources/gtk-3.0/scale_horz_slider_arrow_inactive.png"); + @include __wintc_apply_props($scale_horz_arrow_inactive_styles); } } } @@ -95,53 +147,80 @@ scale &.vertical { - min-width: 21px; + min-width: $scale_slider_length; marks { + @include __wintc_apply_props($scale_vert_marks_styles); + mark { indicator { - min-height: 1px; - min-width: 3px; + min-height: $scale_mark_thickness; + min-width: $scale_mark_length; } - &:first-child indicator, - &:last-child indicator + @if $scale_end_mark_length != $scale_mark_length { - min-width: 4px; + &:first-child indicator, + &:last-child indicator + { + min-width: $scale_end_mark_length; + } } } } slider { - background-image: url("../Resources/gtk-3.0/scale_vert_slider.png"); - margin: -6px -11px -5px -10px; - min-width: 4px; + @include __wintc_apply_props_excluding( + $scale_vert_thumb_styles, + "margin-bottom", + "margin-left", + "margin-right", + "margin-top", + "min-height" + ); + + $l_margin_bottom: floor($scale_slider_thickness / 2) * -1; + $l_margin_left: floor($scale_slider_length / 2) * -1; + $l_margin_right: ceil($scale_slider_length / 2) * -1; + $l_margin_top: ceil($scale_slider_thickness / 2) * -1; + + margin: $l_margin_top $l_margin_right $l_margin_bottom $l_margin_left; + min-width: __wintc_get_prop_with_fallbacks( + "border-left-width", + $scale_vert_trough_styles, + $scale_trough_styles + ) + + __wintc_get_prop_with_fallbacks( + "border-right-width" + $scale_vert_trough_styles, + $scale_trough_styles + ); &:hover { - background-image: url("../Resources/gtk-3.0/scale_vert_slider_hover.png"); + @include __wintc_apply_props($scale_vert_thumb_hover_styles); } &:active { - background-image: url("../Resources/gtk-3.0/scale_vert_slider_active.png"); + @include __wintc_apply_props($scale_vert_thumb_press_styles); } &:disabled { - background-image: url("../Resources/gtk-3.0/scale_vert_slider_inactive.png"); + @include __wintc_apply_props($scale_vert_thumb_inactive_styles); } } trough { - border-image: url("../Resources/gtk-3.0/scale_vert_trough.png") 2 2 2 2 stretch; + @include __wintc_apply_props($scale_vert_trough_styles); } &.marks-after, @@ -152,40 +231,24 @@ scale slider { - background-image: url("../Resources/gtk-3.0/scale_vert_slider_arrow.png"); + @include __wintc_apply_props($scale_vert_arrow_styles); &:hover { - background-image: url("../Resources/gtk-3.0/scale_vert_slider_arrow_hover.png"); + @include __wintc_apply_props($scale_vert_arrow_hover_styles); } &:active { - background-image: url("../Resources/gtk-3.0/scale_vert_slider_arrow_active.png"); + @include __wintc_apply_props($scale_vert_arrow_press_styles); } &:disabled { - background-image: url("../Resources/gtk-3.0/scale_vert_slider_arrow_inactive.png"); + @include __wintc_apply_props($scale_vert_arrow_inactive_styles); } } } } - - indicator - { - color: #A1A192; - } - - trough - { - border-style: solid; - border-width: 2px; - } - - value - { - padding-bottom: 6px; - } } diff --git a/themes/gtk-3.0-base/init/_all.scss b/themes/gtk-3.0-base/init/_all.scss index eadb78d..e489cdb 100644 --- a/themes/gtk-3.0-base/init/_all.scss +++ b/themes/gtk-3.0-base/init/_all.scss @@ -14,3 +14,4 @@ @import "systray"; @import "taskband"; @import "combobox"; +@import "scale"; diff --git a/themes/gtk-3.0-base/init/scale.scss b/themes/gtk-3.0-base/init/scale.scss new file mode 100644 index 0000000..bcc8b01 --- /dev/null +++ b/themes/gtk-3.0-base/init/scale.scss @@ -0,0 +1,52 @@ +/** + * scale.scss - WinTC Scale Theme Part Definitions + * + * This source-code is part of Windows XP stuff for XFCE: + * <> + * + * Author(s): Rory Fewell + */ + +// +// ALL SCALES +// +$scale_styles: (); +$scale_marks_styles: (); +$scale_slider_styles: (); +$scale_trough_styles: (); + + +// +// HORIZONTAL SCALES +// +$scale_horz_styles: (); +$scale_horz_marks_styles: (); +$scale_horz_trough_styles: (); + +$scale_horz_arrow_styles: (); +$scale_horz_arrow_hover_styles: (); +$scale_horz_arrow_press_styles: (); +$scale_horz_arrow_inactive_styles: (); + +$scale_horz_thumb_styles: (); +$scale_horz_thumb_hover_styles: (); +$scale_horz_thumb_press_styles: (); +$scale_horz_thumb_inactive_styles: (); + + +// +// VERTICAL SCALES +// +$scale_vert_styles: (); +$scale_vert_marks_styles: (); +$scale_vert_trough_styles: (); + +$scale_vert_arrow_styles: (); +$scale_vert_arrow_hover_styles: (); +$scale_vert_arrow_press_styles: (); +$scale_vert_arrow_inactive_styles: (); + +$scale_vert_thumb_styles: (); +$scale_vert_thumb_hover_styles: (); +$scale_vert_thumb_press_styles: (); +$scale_vert_thumb_inactive_styles: (); diff --git a/themes/gtk-3.0-base/styling/_all.scss b/themes/gtk-3.0-base/styling/_all.scss index 28753b4..fc5b857 100644 --- a/themes/gtk-3.0-base/styling/_all.scss +++ b/themes/gtk-3.0-base/styling/_all.scss @@ -14,3 +14,4 @@ @import "systray"; @import "taskband"; @import "combobox"; +@import "scale"; diff --git a/themes/gtk-3.0-base/styling/scale.scss b/themes/gtk-3.0-base/styling/scale.scss new file mode 100644 index 0000000..b64cf74 --- /dev/null +++ b/themes/gtk-3.0-base/styling/scale.scss @@ -0,0 +1,195 @@ +/** + * scale.scss - Theme Base Scale Style Constants + * + * This source-code is part of Windows XP stuff for XFCE: + * <> + * + * Author(s): Rory Fewell + */ + +$scale_mark_color: $borders_color !default; +$scale_mark_length: 3px !default; +$scale_mark_thickness: 1px !default; +$scale_end_mark_length: 4px !default; +$scale_slider_length: 21px !default; +$scale_slider_thickness: 11px !default; + + +// +// ALL SCALES +// +$scale_styles: + wintc_define_props_box( + $scale_styles, + true, + "padding", + 6, + 6, + 6, + 6 + ); +$scale_slider_styles: + wintc_define_props_bg( + $scale_slider_styles, + true, + $bg_color, + undefined, + undefined, + undefined, + undefined + ); +$scale_trough_styles: + wintc_define_props_borders( + $scale_trough_styles, + true, + solid, + 1, + 2, + 2, + 1, + undefined, + url('../Resources/scale_trough.png') + ); + + +// +// HORIZONTAL SCALES +// +$scale_horz_marks_styles: + wintc_define_props_box( + $scale_horz_marks_styles, + true, + margin, + 11, + undefined, + undefined, + undefined + ); + +$scale_horz_arrow_styles: + wintc_define_props_bg( + $scale_horz_arrow_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_arrow.png') + ); +$scale_horz_arrow_press_styles: + wintc_define_props_bg( + $scale_horz_arrow_press_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_arrow_press.png') + ); +$scale_horz_arrow_inactive_styles: + wintc_define_props_bg( + $scale_horz_arrow_inactive_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_arrow_inactive.png') + ); + +$scale_horz_thumb_styles: + wintc_define_props_bg( + $scale_horz_thumb_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_thumb.png') + ); +$scale_horz_thumb_press_styles: + wintc_define_props_bg( + $scale_horz_thumb_press_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_thumb_press.png') + ); +$scale_horz_thumb_inactive_styles: + wintc_define_props_bg( + $scale_horz_thumb_inactive_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_thumb_inactive.png') + ); + + +// +// VERTICAL SCALES +// +$scale_vert_arrow_styles: + wintc_define_props_bg( + $scale_vert_arrow_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_arrow.png') + ); +$scale_vert_arrow_press_styles: + wintc_define_props_bg( + $scale_vert_arrow_press_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_arrow_press.png') + ); +$scale_vert_arrow_inactive_styles: + wintc_define_props_bg( + $scale_vert_arrow_inactive_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_arrow_inactive.png') + ); + +$scale_vert_thumb_styles: + wintc_define_props_bg( + $scale_vert_thumb_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_thumb.png') + ); +$scale_vert_thumb_press_styles: + wintc_define_props_bg( + $scale_vert_thumb_press_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_thumb_press.png') + ); +$scale_vert_thumb_inactive_styles: + wintc_define_props_bg( + $scale_vert_thumb_inactive_styles, + true, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_thumb_inactive.png') + ); diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_arrow.png b/themes/luna/blue/Resources/scale_horz_slider_arrow.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_arrow.png rename to themes/luna/blue/Resources/scale_horz_slider_arrow.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_arrow_hover.png b/themes/luna/blue/Resources/scale_horz_slider_arrow_hover.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_arrow_hover.png rename to themes/luna/blue/Resources/scale_horz_slider_arrow_hover.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_arrow_inactive.png b/themes/luna/blue/Resources/scale_horz_slider_arrow_inactive.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_arrow_inactive.png rename to themes/luna/blue/Resources/scale_horz_slider_arrow_inactive.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_arrow_active.png b/themes/luna/blue/Resources/scale_horz_slider_arrow_press.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_arrow_active.png rename to themes/luna/blue/Resources/scale_horz_slider_arrow_press.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_horz_slider.png b/themes/luna/blue/Resources/scale_horz_slider_thumb.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_horz_slider.png rename to themes/luna/blue/Resources/scale_horz_slider_thumb.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_hover.png b/themes/luna/blue/Resources/scale_horz_slider_thumb_hover.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_hover.png rename to themes/luna/blue/Resources/scale_horz_slider_thumb_hover.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_inactive.png b/themes/luna/blue/Resources/scale_horz_slider_thumb_inactive.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_inactive.png rename to themes/luna/blue/Resources/scale_horz_slider_thumb_inactive.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_active.png b/themes/luna/blue/Resources/scale_horz_slider_thumb_press.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_horz_slider_active.png rename to themes/luna/blue/Resources/scale_horz_slider_thumb_press.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_horz_trough.png b/themes/luna/blue/Resources/scale_horz_trough.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_horz_trough.png rename to themes/luna/blue/Resources/scale_horz_trough.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_arrow.png b/themes/luna/blue/Resources/scale_vert_slider_arrow.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_arrow.png rename to themes/luna/blue/Resources/scale_vert_slider_arrow.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_arrow_hover.png b/themes/luna/blue/Resources/scale_vert_slider_arrow_hover.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_arrow_hover.png rename to themes/luna/blue/Resources/scale_vert_slider_arrow_hover.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_arrow_inactive.png b/themes/luna/blue/Resources/scale_vert_slider_arrow_inactive.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_arrow_inactive.png rename to themes/luna/blue/Resources/scale_vert_slider_arrow_inactive.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_arrow_active.png b/themes/luna/blue/Resources/scale_vert_slider_arrow_press.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_arrow_active.png rename to themes/luna/blue/Resources/scale_vert_slider_arrow_press.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_vert_slider.png b/themes/luna/blue/Resources/scale_vert_slider_thumb.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_vert_slider.png rename to themes/luna/blue/Resources/scale_vert_slider_thumb.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_hover.png b/themes/luna/blue/Resources/scale_vert_slider_thumb_hover.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_hover.png rename to themes/luna/blue/Resources/scale_vert_slider_thumb_hover.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_inactive.png b/themes/luna/blue/Resources/scale_vert_slider_thumb_inactive.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_inactive.png rename to themes/luna/blue/Resources/scale_vert_slider_thumb_inactive.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_active.png b/themes/luna/blue/Resources/scale_vert_slider_thumb_press.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_vert_slider_active.png rename to themes/luna/blue/Resources/scale_vert_slider_thumb_press.png diff --git a/themes/luna/blue/Resources/gtk-3.0/scale_vert_trough.png b/themes/luna/blue/Resources/scale_vert_trough.png similarity index 100% rename from themes/luna/blue/Resources/gtk-3.0/scale_vert_trough.png rename to themes/luna/blue/Resources/scale_vert_trough.png diff --git a/themes/luna/blue/gtk-3.0/styling/_all.scss b/themes/luna/blue/gtk-3.0/styling/_all.scss index 89d996b..49993a5 100644 --- a/themes/luna/blue/gtk-3.0/styling/_all.scss +++ b/themes/luna/blue/gtk-3.0/styling/_all.scss @@ -14,3 +14,4 @@ @import "systray"; @import "taskband"; @import "combobox"; +@import "scale"; diff --git a/themes/luna/blue/gtk-3.0/styling/scale.scss b/themes/luna/blue/gtk-3.0/styling/scale.scss new file mode 100644 index 0000000..6267f60 --- /dev/null +++ b/themes/luna/blue/gtk-3.0/styling/scale.scss @@ -0,0 +1,115 @@ +/** + * scale.scss - Luna (Blue) Style Scale Style Constants + * + * This source-code is part of Windows XP stuff for XFCE: + * <> + * + * Author(s): Rory Fewell + */ + +$scale_mark_color: #A1A192; + + +// +// ALL SCALES +// +$scale_slider_styles: + wintc_define_props_bg( + $scale_slider_styles, + false, + undefined, + undefined, + undefined, + undefined, + undefined + ); +$scale_trough_styles: + wintc_define_props_borders( + $scale_trough_styles, + false, + undefined, + undefined, + undefined, + undefined, + undefined, + undefined, + undefined + ); + + +// +// HORIZONTAL SCALES +// +$scale_horz_arrow_hover_styles: + wintc_define_props_bg( + $scale_horz_arrow_hover_styles, + false, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_arrow_hover.png') + ); + +$scale_horz_thumb_hover_styles: + wintc_define_props_bg( + $scale_horz_thumb_hover_styles, + false, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_thumb_hover.png') + ); + +$scale_horz_trough_styles: + wintc_define_props_borders( + $scale_horz_trough_styles, + false, + solid, + 2, + 2, + 2, + 2, + undefined, + url('../Resources/scale_horz_trough.png') + ); + + +// +// VERTICAL SCALES +// +$scale_vert_arrow_hover_styles: + wintc_define_props_bg( + $scale_vert_arrow_hover_styles, + false, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_arrow_hover.png') + ); + +$scale_vert_thumb_hover_styles: + wintc_define_props_bg( + $scale_vert_thumb_hover_styles, + false, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_thumb_hover.png') + ); + +$scale_vert_trough_styles: + wintc_define_props_borders( + $scale_vert_trough_styles, + false, + solid, + 2, + 2, + 2, + 2, + undefined, + url('../Resources/scale_vert_trough.png') + ); diff --git a/themes/native/Resources/scale_horz_slider_arrow.png b/themes/native/Resources/scale_horz_slider_arrow.png new file mode 100644 index 0000000..46c8607 Binary files /dev/null and b/themes/native/Resources/scale_horz_slider_arrow.png differ diff --git a/themes/native/Resources/scale_horz_slider_arrow_inactive.png b/themes/native/Resources/scale_horz_slider_arrow_inactive.png new file mode 120000 index 0000000..565d6df --- /dev/null +++ b/themes/native/Resources/scale_horz_slider_arrow_inactive.png @@ -0,0 +1 @@ +scale_horz_slider_arrow_press.png \ No newline at end of file diff --git a/themes/native/Resources/scale_horz_slider_arrow_press.png b/themes/native/Resources/scale_horz_slider_arrow_press.png new file mode 100644 index 0000000..4a803dd Binary files /dev/null and b/themes/native/Resources/scale_horz_slider_arrow_press.png differ diff --git a/themes/native/Resources/scale_horz_slider_thumb.png b/themes/native/Resources/scale_horz_slider_thumb.png new file mode 100644 index 0000000..0835cea Binary files /dev/null and b/themes/native/Resources/scale_horz_slider_thumb.png differ diff --git a/themes/native/Resources/scale_horz_slider_thumb_inactive.png b/themes/native/Resources/scale_horz_slider_thumb_inactive.png new file mode 120000 index 0000000..e09ec11 --- /dev/null +++ b/themes/native/Resources/scale_horz_slider_thumb_inactive.png @@ -0,0 +1 @@ +scale_horz_slider_thumb_press.png \ No newline at end of file diff --git a/themes/native/Resources/scale_horz_slider_thumb_press.png b/themes/native/Resources/scale_horz_slider_thumb_press.png new file mode 100644 index 0000000..cdac65c Binary files /dev/null and b/themes/native/Resources/scale_horz_slider_thumb_press.png differ diff --git a/themes/native/Resources/arrow_down.png b/themes/native/Resources/scale_trough.png similarity index 65% rename from themes/native/Resources/arrow_down.png rename to themes/native/Resources/scale_trough.png index e3832dd..acc4c2b 100644 Binary files a/themes/native/Resources/arrow_down.png and b/themes/native/Resources/scale_trough.png differ diff --git a/themes/native/Resources/scale_vert_slider_arrow.png b/themes/native/Resources/scale_vert_slider_arrow.png new file mode 100644 index 0000000..94fd144 Binary files /dev/null and b/themes/native/Resources/scale_vert_slider_arrow.png differ diff --git a/themes/native/Resources/scale_vert_slider_arrow_inactive.png b/themes/native/Resources/scale_vert_slider_arrow_inactive.png new file mode 120000 index 0000000..d525848 --- /dev/null +++ b/themes/native/Resources/scale_vert_slider_arrow_inactive.png @@ -0,0 +1 @@ +scale_vert_slider_arrow_press.png \ No newline at end of file diff --git a/themes/native/Resources/scale_vert_slider_arrow_press.png b/themes/native/Resources/scale_vert_slider_arrow_press.png new file mode 100644 index 0000000..764193a Binary files /dev/null and b/themes/native/Resources/scale_vert_slider_arrow_press.png differ diff --git a/themes/native/Resources/scale_vert_slider_thumb.png b/themes/native/Resources/scale_vert_slider_thumb.png new file mode 100644 index 0000000..864055c Binary files /dev/null and b/themes/native/Resources/scale_vert_slider_thumb.png differ diff --git a/themes/native/Resources/scale_vert_slider_thumb_inactive.png b/themes/native/Resources/scale_vert_slider_thumb_inactive.png new file mode 120000 index 0000000..6ffe9e3 --- /dev/null +++ b/themes/native/Resources/scale_vert_slider_thumb_inactive.png @@ -0,0 +1 @@ +scale_vert_slider_thumb_press.png \ No newline at end of file diff --git a/themes/native/Resources/scale_vert_slider_thumb_press.png b/themes/native/Resources/scale_vert_slider_thumb_press.png new file mode 100644 index 0000000..9e5ab9c Binary files /dev/null and b/themes/native/Resources/scale_vert_slider_thumb_press.png differ diff --git a/themes/professional/Resources/scale_horz_slider_arrow.png b/themes/professional/Resources/scale_horz_slider_arrow.png new file mode 100644 index 0000000..5697293 Binary files /dev/null and b/themes/professional/Resources/scale_horz_slider_arrow.png differ diff --git a/themes/professional/Resources/scale_horz_slider_arrow_hover.png b/themes/professional/Resources/scale_horz_slider_arrow_hover.png new file mode 100644 index 0000000..b42d1e9 Binary files /dev/null and b/themes/professional/Resources/scale_horz_slider_arrow_hover.png differ diff --git a/themes/professional/Resources/scale_horz_slider_arrow_inactive.png b/themes/professional/Resources/scale_horz_slider_arrow_inactive.png new file mode 100644 index 0000000..64c9f69 Binary files /dev/null and b/themes/professional/Resources/scale_horz_slider_arrow_inactive.png differ diff --git a/themes/professional/Resources/scale_horz_slider_arrow_press.png b/themes/professional/Resources/scale_horz_slider_arrow_press.png new file mode 100644 index 0000000..541d191 Binary files /dev/null and b/themes/professional/Resources/scale_horz_slider_arrow_press.png differ diff --git a/themes/professional/Resources/scale_horz_slider_thumb.png b/themes/professional/Resources/scale_horz_slider_thumb.png new file mode 100644 index 0000000..cb06e96 Binary files /dev/null and b/themes/professional/Resources/scale_horz_slider_thumb.png differ diff --git a/themes/professional/Resources/scale_horz_slider_thumb_hover.png b/themes/professional/Resources/scale_horz_slider_thumb_hover.png new file mode 100644 index 0000000..e256ff6 Binary files /dev/null and b/themes/professional/Resources/scale_horz_slider_thumb_hover.png differ diff --git a/themes/professional/Resources/scale_horz_slider_thumb_inactive.png b/themes/professional/Resources/scale_horz_slider_thumb_inactive.png new file mode 100644 index 0000000..b92de13 Binary files /dev/null and b/themes/professional/Resources/scale_horz_slider_thumb_inactive.png differ diff --git a/themes/professional/Resources/scale_horz_slider_thumb_press.png b/themes/professional/Resources/scale_horz_slider_thumb_press.png new file mode 100644 index 0000000..4ae5ebb Binary files /dev/null and b/themes/professional/Resources/scale_horz_slider_thumb_press.png differ diff --git a/themes/professional/Resources/scale_trough.png b/themes/professional/Resources/scale_trough.png new file mode 100644 index 0000000..2b79629 Binary files /dev/null and b/themes/professional/Resources/scale_trough.png differ diff --git a/themes/professional/Resources/scale_vert_slider_arrow.png b/themes/professional/Resources/scale_vert_slider_arrow.png new file mode 100644 index 0000000..fdb3bdf Binary files /dev/null and b/themes/professional/Resources/scale_vert_slider_arrow.png differ diff --git a/themes/professional/Resources/scale_vert_slider_arrow_hover.png b/themes/professional/Resources/scale_vert_slider_arrow_hover.png new file mode 100644 index 0000000..c24b573 Binary files /dev/null and b/themes/professional/Resources/scale_vert_slider_arrow_hover.png differ diff --git a/themes/professional/Resources/scale_vert_slider_arrow_inactive.png b/themes/professional/Resources/scale_vert_slider_arrow_inactive.png new file mode 100644 index 0000000..ca43c86 Binary files /dev/null and b/themes/professional/Resources/scale_vert_slider_arrow_inactive.png differ diff --git a/themes/professional/Resources/scale_vert_slider_arrow_press.png b/themes/professional/Resources/scale_vert_slider_arrow_press.png new file mode 100644 index 0000000..bdec855 Binary files /dev/null and b/themes/professional/Resources/scale_vert_slider_arrow_press.png differ diff --git a/themes/professional/Resources/scale_vert_slider_thumb.png b/themes/professional/Resources/scale_vert_slider_thumb.png new file mode 100644 index 0000000..36cd21b Binary files /dev/null and b/themes/professional/Resources/scale_vert_slider_thumb.png differ diff --git a/themes/professional/Resources/scale_vert_slider_thumb_hover.png b/themes/professional/Resources/scale_vert_slider_thumb_hover.png new file mode 100644 index 0000000..45bb8bb Binary files /dev/null and b/themes/professional/Resources/scale_vert_slider_thumb_hover.png differ diff --git a/themes/professional/Resources/scale_vert_slider_thumb_inactive.png b/themes/professional/Resources/scale_vert_slider_thumb_inactive.png new file mode 100644 index 0000000..e200a19 Binary files /dev/null and b/themes/professional/Resources/scale_vert_slider_thumb_inactive.png differ diff --git a/themes/professional/Resources/scale_vert_slider_thumb_press.png b/themes/professional/Resources/scale_vert_slider_thumb_press.png new file mode 100644 index 0000000..0186b6c Binary files /dev/null and b/themes/professional/Resources/scale_vert_slider_thumb_press.png differ diff --git a/themes/professional/gtk-3.0/styling/_all.scss b/themes/professional/gtk-3.0/styling/_all.scss index ff3e030..4dec032 100644 --- a/themes/professional/gtk-3.0/styling/_all.scss +++ b/themes/professional/gtk-3.0/styling/_all.scss @@ -13,3 +13,4 @@ @import "start-menu"; @import "taskband"; @import "combobox"; +@import "scale"; diff --git a/themes/professional/gtk-3.0/styling/scale.scss b/themes/professional/gtk-3.0/styling/scale.scss new file mode 100644 index 0000000..7944b65 --- /dev/null +++ b/themes/professional/gtk-3.0/styling/scale.scss @@ -0,0 +1,88 @@ +/** + * scale.scss - Professional Style Scale Style Constants + * + * This source-code is part of Windows XP stuff for XFCE: + * <> + * + * Author(s): Rory Fewell + */ + +$scale_mark_color: #A1A192; +$scale_slider_length: 22px; + + +// +// ALL SCALES +// +$scale_slider_styles: + wintc_define_props_bg( + $scale_slider_styles, + false, + undefined, + undefined, + undefined, + undefined, + undefined + ); +$scale_trough_styles: + wintc_define_props_box( + $scale_trough_styles, + false, + padding, + 1, + undefined, + undefined, + undefined + ); + + +// +// HORIZONTAL SCALES +// +$scale_horz_arrow_hover_styles: + wintc_define_props_bg( + $scale_horz_arrow_hover_styles, + false, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_arrow_hover.png') + ); + +$scale_horz_thumb_hover_styles: + wintc_define_props_bg( + $scale_horz_thumb_hover_styles, + false, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_horz_slider_thumb_hover.png') + ); + + +// +// HORIZONTAL SCALES +// +$scale_vert_arrow_hover_styles: + wintc_define_props_bg( + $scale_vert_arrow_hover_styles, + false, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_arrow_hover.png') + ); + +$scale_vert_thumb_hover_styles: + wintc_define_props_bg( + $scale_vert_thumb_hover_styles, + false, + undefined, + undefined, + undefined, + undefined, + url('../Resources/scale_vert_slider_thumb_hover.png') + );