style: change the treeview back to a check
it takes less space and the previous implementation looks bad on some systems where the sizes are not respected
This commit is contained in:
1 parent
3a3287145e
commit
765ef1b3f6
9 files changed
+97
-51
No files matched your search
+11
-17
@@ -32,6 +32,10 @@ window {
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
|
||||
treeview.view{
|
||||
padding-right: 0.25em;
|
||||
}
|
||||
|
||||
junction {
|
||||
background-color: @bg;
|
||||
}
|
||||
@@ -40,8 +44,7 @@ switch slider {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
switch,
|
||||
treeview.view check {
|
||||
switch {
|
||||
margin: 0.75em;
|
||||
min-width: 5em;
|
||||
min-height: 2.5em;
|
||||
@@ -50,23 +53,14 @@ treeview.view check {
|
||||
}
|
||||
|
||||
treeview.view check {
|
||||
background-color: rgb(32,41,47);
|
||||
-gtk-icon-source: -gtk-icontheme("switch-off-symbolic");
|
||||
background-repeat: no-repeat;
|
||||
background-position: left center;
|
||||
background-size : 3em 3em;
|
||||
background-image: image(url("./styles/circle.svg"));
|
||||
-gtk-icon-transform: translateX(1.5em);
|
||||
}
|
||||
treeview.view check:checked {
|
||||
background-color : rgb(53,132,228);
|
||||
background-position: right center;
|
||||
-gtk-icon-source: -gtk-icontheme("switch-on-symbolic");
|
||||
-gtk-icon-transform: translateX(-1.5em);
|
||||
min-height: 2em;
|
||||
min-width: 2em;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
expander label {
|
||||
padding : 1em;
|
||||
treeview.view check:checked {
|
||||
background-image: none;
|
||||
-gtk-icon-source: url("./styles/complete.svg");
|
||||
}
|
||||
|
||||
button {
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg
|
||||
width="120"
|
||||
height="120"
|
||||
viewBox="0 0 120 120"
|
||||
>
|
||||
<circle cx="60" cy="60" r="60" fill="#fff" />
|
||||
</svg>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 160 B |
@@ -109,16 +109,25 @@ popover button {
|
||||
border-color: @solarized-base03;
|
||||
}
|
||||
|
||||
treeview.view check,
|
||||
switch {
|
||||
background-color: @solarized-base02;
|
||||
}
|
||||
|
||||
treeview.view check:checked,
|
||||
switch:checked {
|
||||
background-color: @solarized-green;
|
||||
}
|
||||
|
||||
treeview.view check {
|
||||
background-image: none;
|
||||
background-color: @solarized-base02;
|
||||
border-radius: .51em;
|
||||
}
|
||||
|
||||
treeview.view check:checked {
|
||||
background-image: none;
|
||||
background-color: @solarized-base02;
|
||||
-gtk-icon-source: url("./styles/colorized/images/complete.svg");
|
||||
}
|
||||
|
||||
entry {
|
||||
background-color: @solarized-base02;
|
||||
border-color: @solarized-base03;
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
version="1.1"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg4"
|
||||
sodipodi:docname="complete.svg"
|
||||
inkscape:version="1.1 (c4e8f9ed74, 2021-05-24)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
id="namedview6"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
showgrid="false"
|
||||
inkscape:zoom="26"
|
||||
inkscape:cx="12"
|
||||
inkscape:cy="12.019231"
|
||||
inkscape:window-width="1600"
|
||||
inkscape:window-height="826"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4" />
|
||||
<path
|
||||
d="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z"
|
||||
id="path2"
|
||||
style="fill:#e2e2e2" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -103,6 +103,10 @@ switch:checked {
|
||||
background-color: @echo;
|
||||
}
|
||||
|
||||
treeview.view check:checked {
|
||||
-gtk-icon-source: url("./styles/material-dark/images/complete.svg");
|
||||
}
|
||||
|
||||
entry {
|
||||
background-color: @active-dark;
|
||||
border-color: @active-dark;
|
||||
|
||||
@@ -101,6 +101,10 @@ switch:checked {
|
||||
background-color: #2f5631;
|
||||
}
|
||||
|
||||
treeview.view check:checked {
|
||||
-gtk-icon-source: url("./styles/material-darker/images/complete.svg");
|
||||
}
|
||||
|
||||
label {
|
||||
color: #e2e2e2;
|
||||
}
|
||||
|
||||
@@ -122,6 +122,10 @@ switch:checked {
|
||||
background-color: @color3;
|
||||
}
|
||||
|
||||
treeview.view check:checked {
|
||||
-gtk-icon-source: url("./styles/material-light/images/complete.svg");
|
||||
}
|
||||
|
||||
treeview.view check,
|
||||
switch slider,
|
||||
scale trough,
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="64"
|
||||
height="64"
|
||||
viewBox="0 0 64 64"
|
||||
version="1.1"
|
||||
id="svg10"
|
||||
sodipodi:docname="complete.svg"
|
||||
inkscape:version="1.0.2 (e86c870879, 2021-01-15, custom)">
|
||||
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<metadata
|
||||
id="metadata16">
|
||||
<rdf:RDF>
|
||||
@@ -38,22 +38,24 @@
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1600"
|
||||
inkscape:window-height="837"
|
||||
inkscape:window-height="829"
|
||||
id="namedview12"
|
||||
showgrid="false"
|
||||
inkscape:pagecheckerboard="false"
|
||||
inkscape:zoom="6.05"
|
||||
inkscape:cx="29.562225"
|
||||
inkscape:cy="34.810069"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:cx="38.429752"
|
||||
inkscape:cy="24.545455"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg10"
|
||||
inkscape:current-layer="g835"
|
||||
inkscape:snap-bbox="true"
|
||||
inkscape:snap-bbox-edge-midpoints="false"
|
||||
inkscape:document-rotation="0"
|
||||
inkscape:snap-bbox-midpoints="true"
|
||||
inkscape:snap-others="false" />
|
||||
inkscape:snap-others="false"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:deskcolor="#d1d1d1" />
|
||||
<!-- Generator: Sketch 52.5 (67469) - http://www.bohemiancoding.com/sketch -->
|
||||
<title
|
||||
id="title2">folder</title>
|
||||
@@ -64,12 +66,8 @@
|
||||
transform="matrix(0.88461538,0,0,0.88461538,3.6776896,3.6923078)"
|
||||
style="stroke-width:1.13043">
|
||||
<path
|
||||
id="rect1676"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.995;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.52174;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
|
||||
d="M 15.5,6 C 10.262946,6 6,10.262946 6,15.5 v 33 c 0,5.237054 4.262946,9.5 9.5,9.5 h 33 C 53.737054,58 58,53.737054 58,48.5 V 19.134766 l -3,3.59375 V 48.5 c 0,3.626946 -2.873054,6.5 -6.5,6.5 h -33 C 11.873054,55 9,52.126946 9,48.5 v -33 C 9,11.873054 11.873054,9 15.5,9 H 47.828125 L 50.197266,6.1601562 C 49.645699,6.0600767 49.079922,6 48.5,6 Z" />
|
||||
<path
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4.52174;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 21.025298,31.581845 30.697917,40.622024 56.297488,9.9579714"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:5.65217;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 12.058488,37.964485 22.939083,48.197071 51.735684,13.488406"
|
||||
id="path1678"
|
||||
sodipodi:nodetypes="ccc" />
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -76,11 +76,16 @@ treeview.view check,
|
||||
switch {
|
||||
background-color: @active;
|
||||
}
|
||||
|
||||
treeview.view check:checked,
|
||||
switch:checked {
|
||||
background-color: @switch-scale-bg;
|
||||
}
|
||||
|
||||
treeview.view check:checked {
|
||||
-gtk-icon-source: url("./styles/z-bolt/images/complete.svg");
|
||||
}
|
||||
|
||||
entry {
|
||||
background-color: @active;
|
||||
border-color: @bg;
|
||||
|
||||
Reference in new issue
Block a user