mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-01-26 19:49:44 +00:00
Prelim: Start working on styling spinbutton
This commit is contained in:
@@ -9,6 +9,26 @@
|
|||||||
|
|
||||||
spinbutton
|
spinbutton
|
||||||
{
|
{
|
||||||
|
button
|
||||||
|
{
|
||||||
|
@include __wintc_apply_props($spinbutton_button_styles);
|
||||||
|
|
||||||
|
&:hover
|
||||||
|
{
|
||||||
|
@include __wintc_apply_props($spinbutton_button_hover_styles);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active
|
||||||
|
{
|
||||||
|
@include __wintc_apply_props($spinbutton_button_press_styles);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled
|
||||||
|
{
|
||||||
|
@include __wintc_apply_props($spinbutton_button_inactive_styles);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:not(.vertical)
|
&:not(.vertical)
|
||||||
{
|
{
|
||||||
// In this horizontal configuration, the whole spinbutton
|
// In this horizontal configuration, the whole spinbutton
|
||||||
@@ -17,12 +37,12 @@ spinbutton
|
|||||||
//
|
//
|
||||||
@extend %entry;
|
@extend %entry;
|
||||||
|
|
||||||
padding: 0;
|
padding: 0px;
|
||||||
|
|
||||||
|
@include __wintc_apply_props($spinbutton_styles);
|
||||||
|
|
||||||
%spinbutton_horz_entry
|
%spinbutton_horz_entry
|
||||||
{
|
{
|
||||||
min-width: 28px;
|
|
||||||
|
|
||||||
// Reset all the other props since the spinbutton node is styled here
|
// Reset all the other props since the spinbutton node is styled here
|
||||||
//
|
//
|
||||||
background: none;
|
background: none;
|
||||||
@@ -31,75 +51,12 @@ spinbutton
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
&:backdrop:disabled
|
|
||||||
{
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
entry
|
entry
|
||||||
{
|
{
|
||||||
@extend %spinbutton_horz_entry;
|
@extend %spinbutton_horz_entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
button
|
|
||||||
{
|
|
||||||
background-image: none;
|
|
||||||
border-color: transparentize($borders_color, 0.7);
|
|
||||||
border-radius: 0;
|
|
||||||
border-style: none none none solid;
|
|
||||||
box-shadow: none;
|
|
||||||
color: mix($fg_color, $base_color, 90%);
|
|
||||||
margin: 0;
|
|
||||||
min-height: 16px;
|
|
||||||
padding-bottom: 0;
|
|
||||||
padding-top: 0;
|
|
||||||
|
|
||||||
&:dir(rtl)
|
|
||||||
{
|
|
||||||
border-style: none solid none none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover
|
|
||||||
{
|
|
||||||
background-color: $base_hover_color;
|
|
||||||
color: $fg_color;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:disabled
|
|
||||||
{
|
|
||||||
background-color: transparent;
|
|
||||||
color: transparentize($insensitive_fg_color, 0.7);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active
|
|
||||||
{
|
|
||||||
background-color: transparentize(black, 0.9);
|
|
||||||
box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:backdrop
|
|
||||||
{
|
|
||||||
background-color: transparent;
|
|
||||||
border-color: transparentize($backdrop_borders_color, 0.7);
|
|
||||||
color: mix($backdrop_fg_color, $backdrop_base_color, 90%);
|
|
||||||
transition: $backdrop_transition;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:backdrop:disabled
|
|
||||||
{
|
|
||||||
background-color: transparent;
|
|
||||||
background-image: none;
|
|
||||||
border-style: none none none solid; // It is needed or it gets overridden
|
|
||||||
color: transparentize($backdrop_insensitive_color,0.7);
|
|
||||||
|
|
||||||
&:dir(rtl) { border-style: none solid none none; }
|
|
||||||
}
|
|
||||||
|
|
||||||
&:dir(ltr):last-child { border-radius: 0 $button_radius $button_radius 0; }
|
|
||||||
&:dir(rtl):first-child { border-radius: $button_radius 0 0 $button_radius; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// OSD horizontal
|
// OSD horizontal
|
||||||
@@ -172,54 +129,9 @@ spinbutton
|
|||||||
// as a box, and tweak the style of the entry in the middle
|
// as a box, and tweak the style of the entry in the middle
|
||||||
// so that it's linked
|
// so that it's linked
|
||||||
//
|
//
|
||||||
|
|
||||||
// FIXME: this should not be set at all, but otherwise it gets the wrong
|
|
||||||
// color
|
|
||||||
//
|
|
||||||
&:disabled
|
|
||||||
{
|
|
||||||
color: $insensitive_fg_color;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:backdrop:disabled
|
|
||||||
{
|
|
||||||
color: $backdrop_insensitive_color;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:drop(active)
|
|
||||||
{
|
|
||||||
border-color: transparent;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
entry
|
entry
|
||||||
{
|
{
|
||||||
border-radius: 0;
|
@include __wintc_apply_props($spinbutton_styles);
|
||||||
min-height: 32px;
|
|
||||||
min-width: 32px;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
button
|
|
||||||
{
|
|
||||||
min-height: 32px;
|
|
||||||
min-width: 32px;
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
&.up { @extend %top_button; }
|
|
||||||
&.down { @extend %bottom_button; }
|
|
||||||
}
|
|
||||||
|
|
||||||
%top_button
|
|
||||||
{
|
|
||||||
border-radius: $button_radius $button_radius 0 0;
|
|
||||||
border-style: solid solid none solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
%bottom_button
|
|
||||||
{
|
|
||||||
border-radius: 0 0 $button_radius $button_radius;
|
|
||||||
border-style: none solid solid solid;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,3 +23,4 @@
|
|||||||
@import "csd";
|
@import "csd";
|
||||||
@import "treeview";
|
@import "treeview";
|
||||||
@import "switch";
|
@import "switch";
|
||||||
|
@import "spinbutton";
|
||||||
|
|||||||
15
themes/gtk-3.0-base/init/spinbutton.scss
Normal file
15
themes/gtk-3.0-base/init/spinbutton.scss
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* spinbutton.scss - WinTC Spin Button Theme Part Definitions
|
||||||
|
*
|
||||||
|
* This source-code is part of Windows XP stuff for XFCE:
|
||||||
|
* <<https://www.oddmatics.uk>>
|
||||||
|
*
|
||||||
|
* Author(s): Rory Fewell <roryf@oddmatics.uk>
|
||||||
|
*/
|
||||||
|
|
||||||
|
$spinbutton_styles: ();
|
||||||
|
|
||||||
|
$spinbutton_button_styles: ();
|
||||||
|
$spinbutton_button_hover_styles: ();
|
||||||
|
$spinbutton_button_press_styles: ();
|
||||||
|
$spinbutton_button_inactive_styles: ();
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
@import "csd";
|
@import "csd";
|
||||||
@import "treeview";
|
@import "treeview";
|
||||||
@import "switch";
|
@import "switch";
|
||||||
|
@import "spinbutton";
|
||||||
|
|
||||||
@import "start-menu";
|
@import "start-menu";
|
||||||
@import "systray";
|
@import "systray";
|
||||||
|
|||||||
Reference in New Issue
Block a user