Replace the old panel button mod with a new adjustment to the active state

This commit is contained in:
Kevin MacMartin 2023-10-10 00:03:28 -04:00
parent 1d982c38dc
commit ae873576ba
3 changed files with 1 additions and 362 deletions

View file

@ -1,178 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:export-ydpi="90.000000"
inkscape:export-xdpi="90.000000"
width="24"
height="24"
id="svg11300"
sodipodi:version="0.32"
inkscape:version="0.91 r13725"
sodipodi:docname="activities-active.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.0"
style="display:inline;enable-background:new">
<sodipodi:namedview
stroke="#ef2929"
fill="#f57900"
id="base"
pagecolor="#bebebe"
bordercolor="#525252"
borderopacity="1"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
inkscape:zoom="22.627417"
inkscape:cx="4.4779162"
inkscape:cy="11.459165"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:grid-bbox="true"
inkscape:document-units="px"
inkscape:showpageshadow="true"
inkscape:window-width="1600"
inkscape:window-height="848"
inkscape:window-x="0"
inkscape:window-y="25"
width="400px"
height="300px"
inkscape:snap-nodes="true"
inkscape:snap-bbox="true"
gridtolerance="10000"
inkscape:object-nodes="true"
inkscape:snap-grids="true"
showguides="false"
inkscape:guide-bbox="true"
inkscape:window-maximized="1"
inkscape:bbox-nodes="true"
inkscape:bbox-paths="false"
inkscape:snap-bbox-edge-midpoints="false"
inkscape:snap-bbox-midpoints="false"
objecttolerance="10000"
guidetolerance="10000"
borderlayer="true"
showborder="true"
guidecolor="#ff0b00"
guideopacity="1"
guidehicolor="#001aff"
guidehiopacity="0.49803922">
<inkscape:grid
type="xygrid"
id="grid3123"
empspacing="4"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true" />
<sodipodi:guide
position="12,12"
orientation="1,0"
id="guide4135" />
</sodipodi:namedview>
<defs
id="defs3">
<linearGradient
id="selected_bg_color"
osb:paint="solid">
<stop
style="stop-color:#3584e4;stop-opacity:1;"
offset="0"
id="stop4140" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#selected_bg_color"
id="linearGradient4142"
x1="6"
y1="287"
x2="6"
y2="289"
gradientUnits="userSpaceOnUse" />
</defs>
<metadata
id="metadata4">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:creator>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:creator>
<dc:source />
<cc:license
rdf:resource="" />
<dc:title />
<dc:subject>
<rdf:Bag />
</dc:subject>
<dc:date />
<dc:rights>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:rights>
<dc:publisher>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:publisher>
<dc:identifier />
<dc:relation />
<dc:language />
<dc:coverage />
<dc:description />
<dc:contributor>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:contributor>
</cc:Work>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="display:inline"
inkscape:groupmode="layer"
inkscape:label="Base"
id="layer1"
transform="translate(0,-276)">
<rect
style="opacity:1;fill:url(#linearGradient4142);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4138"
width="2"
height="2"
x="5"
y="287" />
<rect
style="display:inline;opacity:1;fill:url(#selected_bg_color);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;enable-background:new"
id="rect4138-6"
width="2"
height="2"
x="11"
y="287" />
<rect
style="display:inline;opacity:1;fill:url(#selected_bg_color);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;enable-background:new"
id="rect4138-9"
width="2"
height="2"
x="17"
y="287" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.2 KiB

View file

@ -1,158 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
inkscape:export-ydpi="90.000000"
inkscape:export-xdpi="90.000000"
width="24"
height="24"
id="svg11300"
sodipodi:version="0.32"
inkscape:version="0.91 r13725"
sodipodi:docname="activities.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.0"
style="display:inline;enable-background:new">
<sodipodi:namedview
stroke="#ef2929"
fill="#f57900"
id="base"
pagecolor="#bebebe"
bordercolor="#525252"
borderopacity="1"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
inkscape:zoom="22.627417"
inkscape:cx="11.305916"
inkscape:cy="11.635941"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:grid-bbox="true"
inkscape:document-units="px"
inkscape:showpageshadow="true"
inkscape:window-width="1600"
inkscape:window-height="848"
inkscape:window-x="0"
inkscape:window-y="25"
width="400px"
height="300px"
inkscape:snap-nodes="true"
inkscape:snap-bbox="true"
gridtolerance="10000"
inkscape:object-nodes="true"
inkscape:snap-grids="true"
showguides="false"
inkscape:guide-bbox="true"
inkscape:window-maximized="1"
inkscape:bbox-nodes="true"
inkscape:bbox-paths="false"
inkscape:snap-bbox-edge-midpoints="false"
inkscape:snap-bbox-midpoints="false"
objecttolerance="10000"
guidetolerance="10000"
borderlayer="true"
showborder="true"
guidecolor="#ff0b00"
guideopacity="1"
guidehicolor="#001aff"
guidehiopacity="0.49803922">
<inkscape:grid
type="xygrid"
id="grid3123"
empspacing="4"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true" />
<sodipodi:guide
position="12,12"
orientation="1,0"
id="guide4135" />
</sodipodi:namedview>
<defs
id="defs3" />
<metadata
id="metadata4">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:creator>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:creator>
<dc:source />
<cc:license
rdf:resource="" />
<dc:title />
<dc:subject>
<rdf:Bag />
</dc:subject>
<dc:date />
<dc:rights>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:rights>
<dc:publisher>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:publisher>
<dc:identifier />
<dc:relation />
<dc:language />
<dc:coverage />
<dc:description />
<dc:contributor>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:contributor>
</cc:Work>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="display:inline"
inkscape:groupmode="layer"
inkscape:label="Base"
id="layer1"
transform="translate(0,-276)">
<rect
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4138"
width="2"
height="2"
x="5"
y="287" />
<rect
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;enable-background:new"
id="rect4138-6"
width="2"
height="2"
x="11"
y="287" />
<rect
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;enable-background:new"
id="rect4138-9"
width="2"
height="2"
x="17"
y="287" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.6 KiB

View file

@ -46,31 +46,6 @@ $panel_transition_duration: 250ms; // same as the overview transition duration
&#panelActivities { &#panelActivities {
-natural-hpadding: $base_padding * 2.5; -natural-hpadding: $base_padding * 2.5;
.panel-button {
> * {
background-image: url("common-assets/activities.svg");
background-size: contain;
width: 24px;
height: 24px;
background-color: transparent !important;
background-gradient-direction: none !important;
border: 0 solid transparent !important;
text-shadow: 0 0 transparent !important;
transition-duration: 0ms !important;
box-shadow: none !important;
color: transparent;
}
&:active, &:overview, &:focus, &:checked {
background-color: transparent;
box-shadow: none;
border-bottom-width: 1px;
border-color: transparent;
> * { background-image: url("common-assets/activities-active.svg"); }
}
}
& StBoxLayout { & StBoxLayout {
spacing: 5px; spacing: 5px;
} }
@ -124,7 +99,7 @@ $panel_transition_duration: 250ms; // same as the overview transition duration
box-shadow: none; box-shadow: none;
.panel-button { .panel-button {
@include panel_button($panel_system_fg_color, $fg:$panel_system_fg_color); @include panel_button($panel_system_fg_color, $fg:$panel_system_fg_color, $border_radius: 3px);
&#panelActivities .workspace-dot { &#panelActivities .workspace-dot {
background-color: $panel_system_fg_color; background-color: $panel_system_fg_color;