reftests: Fix up for easy CSS changes
This is mostly search and replace ala GtkButton => button GtkWindow => window .button => button or removing style properties that aren't used anymore like -GtkButton-default-border: 0
This commit is contained in:
		| @ -1,21 +1,15 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| GtkWindow { | ||||
| window { | ||||
|   background-color: rgb(0,255,0); | ||||
| } | ||||
|  | ||||
| GtkButton { | ||||
| button { | ||||
|   border-width: 5px; | ||||
|   border-style: solid; | ||||
|   border-color: rgba(255,0,0,0.6); | ||||
|   padding: 10px; | ||||
|   background-color: rgb(0,0,255); | ||||
|  | ||||
|   /* Make sure children of button are only offset by padding */ | ||||
|   -GtkButton-default-border: 0; | ||||
|   -GtkButton-inner-border: 0; | ||||
|   -GtkWidget-focus-line-width: 0; | ||||
|   -GtkWidget-focus-padding: 0; | ||||
| } | ||||
|  | ||||
| #button1 { | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|   background-color: purple; | ||||
| } | ||||
|  | ||||
| GtkButton { | ||||
| button { | ||||
|   background-color: blue; | ||||
| } | ||||
| .transparent { | ||||
|  | ||||
| @ -1,10 +1,10 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| GtkWindow { | ||||
| window { | ||||
|   background-color: rgb(255,255,255); | ||||
| } | ||||
|  | ||||
| GtkButton { | ||||
| button { | ||||
|   border-width: 5px; | ||||
|   border-style: solid; | ||||
|   border-color: rgba(255,0,0,0.5); | ||||
| @ -52,7 +52,7 @@ GtkButton { | ||||
|   background-clip: content-box; | ||||
| } | ||||
|  | ||||
| GtkButton#reference { | ||||
| button#reference { | ||||
|   border-width: 0; | ||||
|   background-image: url("reference-background-origin.png"); | ||||
| } | ||||
|  | ||||
| @ -1,17 +1,17 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| .button { | ||||
| button { | ||||
|   background-image: url("green-20x20.png"); | ||||
|   background-repeat: no-repeat; | ||||
|   background-color: red; | ||||
| } | ||||
|  | ||||
| .button#ref { | ||||
| button#ref { | ||||
|   background-image: none; | ||||
|   background-color: lime; | ||||
| } | ||||
|  | ||||
| GtkWindow#ref { | ||||
| window#ref { | ||||
|   background-color: red; | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| .button { | ||||
| button { | ||||
|   background-image: url("border-image-balls.png"); | ||||
|   color: black; | ||||
|   text-shadow: 1px 1px white; | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| GtkWindow { background-color: lime; } | ||||
| window { background-color: lime; } | ||||
|  | ||||
| #reference * { background-color: lime; } | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|   border-width: 5px; | ||||
| } | ||||
|  | ||||
| GtkButton { | ||||
| button { | ||||
|   /* using a nonexistant color because that will lead to the default value */ | ||||
|   border-color: @doesnotexist; | ||||
|   color: purple; | ||||
|  | ||||
| @ -7,7 +7,7 @@ | ||||
|   color: purple; | ||||
| } | ||||
|  | ||||
| .button { | ||||
| button { | ||||
|   border-radius: 10px; | ||||
|   padding: 5px; | ||||
| } | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| .button { | ||||
| button { | ||||
|   border-top: 0.5px solid red; | ||||
|   border-bottom: 0.5px solid blue; | ||||
| } | ||||
|  | ||||
| @ -1,5 +1,6 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| * { | ||||
|   engine: none; | ||||
|   border-image: url("green-20x20.png") 5000; | ||||
|   background-image: none; | ||||
|   background-color: #000; | ||||
| @ -9,7 +10,7 @@ | ||||
|   border-radius: 0; | ||||
| } | ||||
|  | ||||
| GtkGrid * { | ||||
| grid * { | ||||
|   background-color: lime; | ||||
|   border-style: none; | ||||
|   border-width: 0; | ||||
|  | ||||
| @ -1,5 +1,4 @@ | ||||
| * { | ||||
|   engine: none; | ||||
|   border-image: none; | ||||
|   border-radius: 0; | ||||
|   border-style: solid; | ||||
|  | ||||
| @ -1,5 +1,4 @@ | ||||
| .progressbar { | ||||
|   engine: none; | ||||
|   border-image: none; | ||||
|   border-radius: 25px; | ||||
| } | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
|   border-color: red; | ||||
| } | ||||
|  | ||||
| GtkButton { | ||||
| button { | ||||
|   background-color: purple; | ||||
|   border-style: none; | ||||
|   border-width: 5px; | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| @import url("reset-to-defaults.css"); | ||||
|  | ||||
| GtkButton { | ||||
| button { | ||||
|   background-color: red; | ||||
|   border-color: lime; | ||||
|   border-width: 1px; | ||||
|  | ||||
| @ -1,29 +1,28 @@ | ||||
| * { | ||||
|   engine: none; | ||||
|   background-image: none; | ||||
| } | ||||
|  | ||||
| .button:nth-child(even) { | ||||
| button:nth-child(even) { | ||||
|   background-color: yellow; | ||||
| } | ||||
|  | ||||
| .button:nth-child(odd) { | ||||
| button:nth-child(odd) { | ||||
|   background-color: red; | ||||
| } | ||||
|  | ||||
| .button:nth-child(first) { | ||||
| button:nth-child(first) { | ||||
|   background-color: purple; | ||||
| } | ||||
|  | ||||
| .button:nth-child(last):nth-child(even) { | ||||
| button:nth-child(last):nth-child(even) { | ||||
|   background-color: lime; | ||||
| } | ||||
|  | ||||
| .button:nth-child(last):nth-child(odd) { | ||||
| button:nth-child(last):nth-child(odd) { | ||||
|   background-color: purple; | ||||
| } | ||||
|  | ||||
| .button:nth-child(last):nth-child(first) { | ||||
| button:nth-child(last):nth-child(first) { | ||||
|   background-color: blue; | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|   100% { background-color: blue; } | ||||
| } | ||||
|  | ||||
| GtkWindow { | ||||
| window { | ||||
|   background-color: #7F0080; | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| GtkWindow { | ||||
| window { | ||||
|   color: alpha(currentColor, 0.0); | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -1,7 +1,6 @@ | ||||
| @import url("reset-to-defaults.css"); | ||||
|  | ||||
| .window { | ||||
|   engine: none; | ||||
|   background-image: none; | ||||
|   background-color: lime; | ||||
|   border-radius: 0; | ||||
|  | ||||
| @ -6,6 +6,6 @@ GtkGrid GtkEventBox { | ||||
|   background-color: red | ||||
| } | ||||
|  | ||||
| GtkWindow > GtkGrid GtkEventBox { | ||||
| window > GtkGrid GtkEventBox { | ||||
|   background-color: blue | ||||
| } | ||||
|  | ||||
| @ -3,10 +3,10 @@ | ||||
|   color: lime; | ||||
| } | ||||
|  | ||||
| :insensitive { | ||||
| :disabled { | ||||
|   color: red; | ||||
| } | ||||
|  | ||||
| label:insensitive { | ||||
| label:disabled { | ||||
|   color: inherit; | ||||
| } | ||||
|  | ||||
| @ -1,9 +1,8 @@ | ||||
| * { | ||||
|   engine: none; | ||||
|   color: inherit; | ||||
| } | ||||
|  | ||||
| GtkButton { | ||||
| button { | ||||
|   color: red; | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -1,7 +1,6 @@ | ||||
| @import url("reset-to-defaults.css"); | ||||
|  | ||||
| #window { | ||||
|   engine: none; | ||||
|   background-image: none; | ||||
|   background-color: lime; | ||||
|   border-radius: 0; | ||||
|  | ||||
| @ -1,13 +1,12 @@ | ||||
| @import url("reset-to-defaults.css"); | ||||
|  | ||||
| GtkWindow { | ||||
|   engine: none; | ||||
| window { | ||||
|   background-image: none; | ||||
|   background-color: lime; | ||||
|   border-radius: 0; | ||||
|   border-style: none; | ||||
| } | ||||
|  | ||||
| NotGtkWindow { | ||||
| Notwindow { | ||||
|   background-color: red; | ||||
| } | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| GtkToggleButton:checked, | ||||
| #reference:insensitive { | ||||
| #reference:disabled { | ||||
|   color: lime; | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -1,3 +1,3 @@ | ||||
| GtkBox { | ||||
| box { | ||||
|   background-image: -gtk-icontheme("pan-down-symbolic"); | ||||
| } | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
| * { | ||||
|   -gtk-icon-source: url("green-20x20.png"); | ||||
|   -gtk-icon-transform: scale(0.5); | ||||
|   icon-shadow: red 1px 1px; | ||||
|   -gtk-icon-shadow: red 1px 1px; | ||||
| } | ||||
|  | ||||
| #transformed { | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| GtkIconView, image { | ||||
| iconview, image { | ||||
|   background-color: blue; | ||||
| } | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| GtkImage { | ||||
|   icon-shadow: 20px 20px tomato; | ||||
| image { | ||||
|   -gtk-icon-shadow: 20px 20px tomato; | ||||
| } | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| GtkWindow { | ||||
| window { | ||||
|   background: darkred; /* should never be seen */ | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -1,5 +1,4 @@ | ||||
| label { | ||||
|   engine: none; | ||||
|   text-shadow: 1px 1px red; | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| GtkButton { | ||||
| button { | ||||
|   border-width: 5px; | ||||
|   border-style: solid; | ||||
|   border-color: rgb(255,0,0); | ||||
|  | ||||
| @ -1,5 +1,4 @@ | ||||
| * { | ||||
|   engine: none; | ||||
|   border-radius: 0; | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -28,11 +28,11 @@ image, label, .menuitem { | ||||
|     background-color: @color_tip; | ||||
| } | ||||
|  | ||||
| *:insensitive { | ||||
| *:disabled { | ||||
|     color: @color_dark; | ||||
| } | ||||
|  | ||||
| *:selected, .menuitem:prelight, *:prelight { | ||||
| *:selected, .menuitem:hover , *:hover { | ||||
|     background-color: @color_sel; | ||||
|     color: white; | ||||
| } | ||||
| @ -41,7 +41,7 @@ GtkCheckButton:selected { | ||||
|     background-color: @color_base; | ||||
| } | ||||
|  | ||||
| .check:prelight, .check:selected, .radio:prelight, .radio:selected { | ||||
| .check:hover, .check:selected, .radio:hover, .radio:selected { | ||||
|     background-color: white; | ||||
|     color: black; | ||||
| } | ||||
| @ -53,22 +53,22 @@ GtkCheckButton:selected { | ||||
|  | ||||
| /* GRADIENTS */ | ||||
|  | ||||
| .button, .notebook tab:active, .slider { | ||||
| button, .notebook tab:active, .slider { | ||||
|     background-image: -gtk-gradient (linear, left top, left bottom, | ||||
|      from (shade (@color_base, 1.2)), to (@color_base)); | ||||
| } | ||||
|  | ||||
| .button:active, .notebook tab, .trough { | ||||
| button:active, .notebook tab, .trough { | ||||
|     background-image: -gtk-gradient (linear, left top, left bottom, | ||||
|      from (shade (@color_base, 0.8)), to (@color_base)); | ||||
| } | ||||
|  | ||||
| .button.vertical, .slider.vertical { | ||||
| button.vertical, .slider.vertical { | ||||
|     background-image: -gtk-gradient (linear, left top, right top, | ||||
|      from (shade (@color_base, 1.2)), to (@color_base)); | ||||
| } | ||||
|  | ||||
| .button.vertical:active, .trough.vertical { | ||||
| button.vertical:active, .trough.vertical { | ||||
|     background-image: -gtk-gradient (linear, left top, right top, | ||||
|      from (shade (@color_base, 0.8)), to (@color_base)); | ||||
| } | ||||
| @ -110,21 +110,21 @@ column-header > .button { | ||||
|     padding: 0px 3px 0px 3px; | ||||
| } | ||||
|  | ||||
| .button, .check, .entry, .frame, .notebook, .progressbar, .radio, .scale, | ||||
| button, .check, .entry, .frame, .notebook, .progressbar, .radio, .scale, | ||||
|  .scrollbar, .slider, .trough { | ||||
|     border-radius: 2px; | ||||
|     border-width: 1px; | ||||
| } | ||||
|  | ||||
| .notebook tab { | ||||
| notebook tab { | ||||
|     padding: 2px; | ||||
| } | ||||
|  | ||||
| .notebook tab:active { | ||||
| notebook tab:active { | ||||
|     padding: 3px; | ||||
| } | ||||
|  | ||||
| .button { | ||||
| button { | ||||
|     padding: 3px; | ||||
| } | ||||
|  | ||||
| @ -159,97 +159,3 @@ column-header > .button { | ||||
|     border-width: 0px 0px 1px 0px; | ||||
| } | ||||
|  | ||||
| .scrollbar { | ||||
|     border-radius: 0px; | ||||
| } | ||||
|  | ||||
| .scrollbar.trough { | ||||
|     border-width: 1px 1px 0px 1px; | ||||
| } | ||||
|  | ||||
| .scrollbar.trough.vertical { | ||||
|     border-width: 1px 0px 1px 1px; | ||||
| } | ||||
|  | ||||
| .scrollbar.button.left, .scrollbar.button.right { | ||||
|     border-width: 1px 0px 0px 0px; | ||||
| } | ||||
|  | ||||
| .scrollbar.button.top, .scrollbar.button.bottom { | ||||
|     border-width: 0px 0px 0px 1px; | ||||
| } | ||||
|  | ||||
| .scrollbars-junction { | ||||
|     border-width: 1px 0px 0px 1px; | ||||
| } | ||||
|  | ||||
| .scrollbar.slider { | ||||
|     border-width: 1px 1px 0px 1px; | ||||
| } | ||||
|  | ||||
| .scrollbar.slider.vertical { | ||||
|     border-width: 1px 0px 1px 1px; | ||||
| } | ||||
|  | ||||
| .separator { | ||||
|     border-width: 1px; | ||||
|     padding: 1px; | ||||
| } | ||||
|  | ||||
| GtkComboBox .separator, GtkFontButton .separator { | ||||
|     border-width: 0px; | ||||
|     padding: 0px; | ||||
| } | ||||
|  | ||||
| .tooltip { | ||||
|     border-width: 1px; | ||||
|     padding: 2px; | ||||
| } | ||||
|  | ||||
| /* MISC SETTINGS */ | ||||
|  | ||||
| * { | ||||
|     -GtkButton-default-border: 0; | ||||
|     -GtkButton-image-spacing: 4; | ||||
|     -GtkButtonBox-child-internal-pad-x: 0; | ||||
|     -GtkButtonBox-child-internal-pad-y: 0; | ||||
|     -GtkButtonBox-child-min-width: 0; | ||||
|     -GtkButtonBox-child-min-height: 0; | ||||
|     -GtkCheckButton-indicator-size: 12; | ||||
|     -GtkCheckMenuItem-indicator-size: 12; | ||||
|     -GtkComboBox-arrow-scaling: 0.667; | ||||
|     -GtkDialog-action-area-border: 0; | ||||
|     -GtkDialog-button-spacing: 6; | ||||
|     -GtkDialog-content-area-border: 6; | ||||
|     -GtkDialog-content-area-spacing: 6; | ||||
|     -GtkEntry-inner-border: 1; | ||||
|     -GtkMenu-horizontal-padding: 1; | ||||
|     -GtkMenu-horizontal-offset: 0; | ||||
|     -GtkMenuBar-internal-padding: 0; | ||||
|     -GtkMenuItem-arrow-scaling: 0.667; | ||||
|     -GtkMenuItem-toggle-spacing: 6; | ||||
|     -GtkNotebook-tab-overlap: 1; | ||||
|     -GtkPaned-handle-size: 6; | ||||
|     -GtkProgressBar-min-horizontal-bar-height: 12; | ||||
|     -GtkProgressBar-min-vertical-bar-width: 12; | ||||
|     -GtkRange-slider-width: 12; | ||||
|     -GtkRange-trough-border: 0; | ||||
|     -GtkScale-slider-length: 30; | ||||
|     -GtkScrolledWindow-scrollbar-spacing: 0; | ||||
|     -GtkScrolledWindow-scrollbars-within-bevel: 1; | ||||
|     -GtkTreeView-horizontal-separator: 0; | ||||
|     -GtkTreeView-vertical-separator: 0; | ||||
|     -GtkWidget-focus-line-width: 0; | ||||
|     -GtkWidget-focus-padding: 0; | ||||
|     -GtkWidget-separator-height: 1; | ||||
|     -GtkWidget-separator-width: 1; | ||||
|     -GtkWidget-wide-separators: TRUE; | ||||
|     -GtkWindow-resize-grip-height: 0; | ||||
| } | ||||
|  | ||||
| .scrollbar { | ||||
|     -GtkRange-slider-width: 17; | ||||
|     -GtkRange-stepper-size: 16; | ||||
|     -GtkRange-trough-under-steppers: FALSE; | ||||
|     -GtkScrollbar-min-slider-length: 18; | ||||
| } | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| GtkWindow { | ||||
| window { | ||||
|   background-color: @doesntexist; | ||||
|   box-shadow: @nonexistant 5px 5px; | ||||
|   border-image: -gtk-gradient(linear, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user