Fixed SevenStart graphical corruptions, as well as other minor graphical glitches.

This commit is contained in:
wackyideas 2022-11-20 01:17:12 +01:00
parent 165fa81da4
commit 15b8a1017f
7 changed files with 121 additions and 35 deletions

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
viewBox="0 0 32 32"
id="svg7"
sodipodi:docname="system-lock-screen.svg"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14, 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">
<sodipodi:namedview
id="namedview9"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
showgrid="false"
inkscape:zoom="10.0625"
inkscape:cx="9.689441"
inkscape:cy="15.204969"
inkscape:window-width="1440"
inkscape:window-height="874"
inkscape:window-x="1600"
inkscape:window-y="150"
inkscape:window-maximized="1"
inkscape:current-layer="svg7"
inkscape:showpageshadow="2"
inkscape:deskcolor="#505050" />
<defs
id="defs3">
<style
type="text/css"
id="current-color-scheme">
.ColorScheme-Text {
color:#eff0f1;
}
</style>
</defs>
<path
class="ColorScheme-Text"
d="m 16,8 c -2.216,0 -4,1.784 -4,4 v 4 h -2 v 8 H 22 V 16 H 20 V 12 C 20,9.784 18.216,8 16,8 Z m 0,1 c 1.662,0 3,1.561 3,3.5 V 16 H 13 V 12.5 C 13,10.561 14.338,9 16,9 Z"
fill="currentColor"
id="light-lock"
sodipodi:nodetypes="ssccccccssssccss" />
<path
d="m 16,8 c -2.216,0 -4,1.784 -4,4 v 4 h -2 v 8 H 22 V 16 H 20 V 12 C 20,9.784 18.216,8 16,8 Z m 0,1 c 1.662,0 3,1.561 3,3.5 V 16 H 13 V 12.5 C 13,10.561 14.338,9 16,9 Z"
fill="currentColor"
id="dark-lock"
sodipodi:nodetypes="ssccccccssssccss"
style="fill:#202020;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -4,7 +4,7 @@
viewBox="0 0 32 32" viewBox="0 0 32 32"
id="svg7" id="svg7"
sodipodi:docname="system-lock-screen.svg" sodipodi:docname="system-lock-screen.svg"
inkscape:version="1.1 (c4e8f9ed74, 2021-05-24)" inkscape:version="1.2.1 (9c6d41e410, 2022-07-14, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@ -18,15 +18,17 @@
inkscape:pageopacity="0" inkscape:pageopacity="0"
inkscape:pagecheckerboard="1" inkscape:pagecheckerboard="1"
showgrid="false" showgrid="false"
inkscape:zoom="20.125" inkscape:zoom="10.0625"
inkscape:cx="15.975155" inkscape:cx="9.689441"
inkscape:cy="15.975155" inkscape:cy="15.204969"
inkscape:window-width="1600" inkscape:window-width="1440"
inkscape:window-height="832" inkscape:window-height="874"
inkscape:window-x="0" inkscape:window-x="1600"
inkscape:window-y="0" inkscape:window-y="150"
inkscape:window-maximized="1" inkscape:window-maximized="1"
inkscape:current-layer="svg7" /> inkscape:current-layer="svg7"
inkscape:showpageshadow="2"
inkscape:deskcolor="#505050" />
<defs <defs
id="defs3"> id="defs3">
<style <style
@ -37,10 +39,40 @@
} }
</style> </style>
</defs> </defs>
<g
id="dark-lock"
transform="matrix(4.3194604,0,0,-4.3194598,-80.492034,1123.7401)">
<rect
transform="matrix(0,1,1,0,0,0)"
y="15.610413"
x="254.93123"
height="3.7041664"
width="3.7041669"
id="rect2183-7-2"
style="opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:0.0374177;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path <path
class="ColorScheme-Text" d="m 17.473692,258.37146 c -0.390877,0 -0.705555,-0.33041 -0.705555,-0.74083 v -0.74083 h -0.352778 v -1.48167 h 2.116666 v 1.48167 h -0.352777 v 0.74083 c 0,0.41042 -0.314678,0.74083 -0.705556,0.74083 z m 0,-0.1852 c 0.293159,0 0.529167,-0.28912 0.529167,-0.64823 v -0.64823 h -1.058333 v 0.64823 c 0,0.35911 0.236008,0.64823 0.529166,0.64823 z"
d="m 16,8 c -2.216,0 -4,1.784 -4,4 v 4 h -2 v 8 H 22 V 16 H 20 V 12 C 20,9.784 18.216,8 16,8 Z m 0,1 c 1.662,0 3,1.561 3,3.5 V 16 H 13 V 12.5 C 13,10.561 14.338,9 16,9 Z"
fill="currentColor" fill="currentColor"
id="path5" id="path3121"
sodipodi:nodetypes="ssccccccssssccss" /> sodipodi:nodetypes="ssccccccssssccss"
style="fill:#202020;fill-opacity:1;stroke-width:0.180745" />
</g>
<g
id="light-lock"
transform="matrix(4.3194604,0,0,-4.3194598,-53.037938,1125.0602)">
<rect
transform="matrix(0,1,1,0,0,0)"
y="15.610413"
x="254.93123"
height="3.7041664"
width="3.7041669"
id="rect3123"
style="opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:0.0374177;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
d="m 17.473692,258.37146 c -0.390877,0 -0.705555,-0.33041 -0.705555,-0.74083 v -0.74083 h -0.352778 v -1.48167 h 2.116666 v 1.48167 h -0.352777 v 0.74083 c 0,0.41042 -0.314678,0.74083 -0.705556,0.74083 z m 0,-0.1852 c 0.293159,0 0.529167,-0.28912 0.529167,-0.64823 v -0.64823 h -1.058333 v 0.64823 c 0,0.35911 0.236008,0.64823 0.529166,0.64823 z"
fill="currentColor"
id="path3125"
sodipodi:nodetypes="ssccccccssssccss"
class="ColorScheme-Text" />
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -168,17 +168,17 @@ Item {
height: width height: width
visible: (model.hasChildren === true) visible: (model.hasChildren === true)
opacity: (listItem.ListView.view.currentIndex === index) ? 1.0 : 0.8 opacity: (listItem.ListView.view.currentIndex === index) ? 1.0 : 1.0
svg: arrowsSvg svg: arrowsSvg
elementId: (Qt.application.layoutDirection == Qt.RightToLeft) ? "left-arrow" : "right-arrow" elementId: (Qt.application.layoutDirection == Qt.RightToLeft) ? "left-arrow-black" : "right-arrow-black"
Colorize { /*Colorize {
anchors.fill: arrow anchors.fill: arrow
source: arrow source: arrow
hue: 0 hue: 0
saturation: 0.0 saturation: 0.0
lightness: -0.6 lightness: -0.6
} }*/
} }
Keys.onPressed: { Keys.onPressed: {

View file

@ -407,19 +407,12 @@ PlasmaCore.Dialog {
PlasmaCore.SvgItem { PlasmaCore.SvgItem {
id: arrowDirection id: arrowDirection
svg: arrowsSvg svg: arrowsSvg
elementId: (searching || showingAllPrograms) ? "left-arrow" : "right-arrow" elementId: (searching || showingAllPrograms) ? "left-arrow-black" : "right-arrow-black"
anchors.left: parent.left anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: units.smallSpacing anchors.leftMargin: units.smallSpacing
width: 16 width: 16
height: 16 height: 16
Colorize {
anchors.fill: arrowDirection
source: arrowDirection
hue: 0.0
saturation: 0.0
lightness: -0.6
}
} }
Text { Text {
text: showingAllPrograms || searching ? "Back" : "All programs" text: showingAllPrograms || searching ? "Back" : "All programs"
@ -1236,24 +1229,27 @@ PlasmaCore.Dialog {
hoverEnabled: true hoverEnabled: true
anchors.fill: lockButton anchors.fill: lockButton
} }
Image { PlasmaCore.SvgItem {
id: lockScreenSvg id: lsSvg
source: "../pics/system-lock-screen.svg" svg: lockScreenSvg
//width: parent.height - units.smallSpacing //width: parent.height - units.smallSpacing
//height: parent.height - units.smallSpacing //height: parent.height - units.smallSpacing
//anchors.horizontalCenter: parent.horizontalCenter //anchors.horizontalCenter: parent.horizontalCenter
//anchors.left: parent.left //anchors.left: parent.left
anchors.fill: lockButton anchors.fill: lockButton
anchors.leftMargin: units.smallSpacing*2
anchors.rightMargin: units.smallSpacing*2
anchors.topMargin: units.smallSpacing*1.5
anchors.bottomMargin: units.smallSpacing*1.5
elementId: searching ? "dark-lock" : "light-lock"
// anchors.leftMargin: -1 // anchors.leftMargin: -1
//anchors.leftMargin: units.smallSpacing //anchors.leftMargin: units.smallSpacing
ColorOverlay { /*ColorOverlay {
anchors.fill: lockScreenSvg anchors.fill: lockScreenSvg
source: lockScreenSvg source: lockScreenSvg
/*hue: 0.0
saturation: 0.0
lightness: searching ? -0.5 : 1.0*/
color: searching ? "#FF202020" : PlasmaCore.Theme.textColor color: searching ? "#FF202020" : PlasmaCore.Theme.textColor
} }*/
} }
//highlight: delegateHighlight //highlight: delegateHighlight
enabled: pmEngine.data["Sleep States"]["LockScreen"] enabled: pmEngine.data["Sleep States"]["LockScreen"]

View file

@ -209,6 +209,10 @@ PlasmaCore.DataSource {
imagePath: "widgets/arrows" imagePath: "widgets/arrows"
size: "16x16" size: "16x16"
} }
PlasmaCore.Svg {
id: lockScreenSvg
imagePath: "widgets/system-lock-screen"
}
PlasmaComponents.Label { PlasmaComponents.Label {
id: toolTipDelegate id: toolTipDelegate