This commit is contained in:
Valeria Fadeeva 2025-02-05 11:00:56 +05:00
parent 3c29f0fe2a
commit a4077667ca
19 changed files with 388 additions and 56 deletions

View File

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 32 32"
version="1.1"
id="svg5"
sodipodi:docname="Hibernate.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
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="metadata9">
<rdf:RDF>
<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>
<sodipodi:namedview
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="761"
id="namedview7"
showgrid="false"
inkscape:zoom="15.198362"
inkscape:cx="17.107107"
inkscape:cy="17.699276"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg5"
inkscape:pagecheckerboard="true"
inkscape:showpageshadow="2"
inkscape:deskcolor="#d1d1d1">
<inkscape:grid
type="xygrid"
id="grid1029"
originx="0"
originy="0"
spacingy="1"
spacingx="1"
units="px" />
</sodipodi:namedview>
<defs
id="defs3051">
<style
type="text/css"
id="current-color-scheme">
.ColorScheme-Text {
color:#eff0f1;
}
</style>
</defs>
<path
id="path891-3"
class="ColorScheme-Text"
d="M 8.5062018,1.9508807 7.4598986,2.6082435 10.049736,7.494811 5.6877805,6.2211707 5.3767166,7.492242 10.902804,9.1048353 14.604929,16.094449 H 7.200679 L 3.1545003,11.685498 2.3014319,12.61505 5.4945444,16.094449 H 0.31486904 v 1.314726 H 5.4945444 l -3.1931125,3.4794 0.8530684,0.929553 4.0461787,-4.408953 h 7.40425 l -3.702125,6.989614 -5.5260874,1.612593 0.3110639,1.271074 4.3619555,-1.273641 -2.5898374,4.886568 1.0463032,0.657362 2.5898382,-4.886568 1.168844,4.75304 1.164131,-0.341518 L 11.949107,25.056152 16,17.409175 l 4.050893,7.646977 -1.479908,6.021547 1.164131,0.341518 1.168844,-4.75304 2.589838,4.886568 1.046302,-0.657362 -2.589836,-4.886568 4.361956,1.273641 0.311063,-1.271074 -5.526087,-1.612593 -3.702125,-6.989614 h 7.404249 l 4.046179,4.408953 0.853068,-0.929553 -3.193112,-3.4794 h 5.179677 v -1.314726 h -5.179677 l 2.422523,-2.632017 h -1.72263 l -2.406028,2.632017 h -7.404249 l 1.392057,-2.632017 H 17.387531 L 16,16.091882 11.949107,8.4474727 13.429015,2.4259279 12.264884,2.084407 11.09604,6.8374483 Z M 27.261124,3.6428542 h 2.010913 V 4.7521826 H 25.250209 L 27.261124,1.4241974 H 25.250212 V 0.31486904 h 4.021822 z M 24.860491,11.03807 h 2.010913 v 1.109328 H 22.849576 L 24.860491,8.8194137 H 22.84958 V 7.7100852 h 4.021819 z M 19.217464,6.6010631 h 2.010913 V 7.7103916 H 17.206548 L 19.217464,4.3824064 H 17.206552 V 3.2730781 h 4.021822 z"
style="color:#31363b;fill:#ffffff;fill-opacity:1;stroke:#c4c4c4;stroke-width:0.629739;stroke-dasharray:none;stroke-opacity:0.745098" />
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 32 32"
version="1.1"
id="svg6"
sodipodi:docname="Reboot.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
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="metadata10">
<rdf:RDF>
<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>
<sodipodi:namedview
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="761"
id="namedview8"
showgrid="false"
inkscape:zoom="10.90898"
inkscape:cx="25.20859"
inkscape:cy="20.166872"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg6"
inkscape:pagecheckerboard="true"
inkscape:showpageshadow="2"
inkscape:deskcolor="#d1d1d1" />
<defs
id="defs3051">
<style
type="text/css"
id="current-color-scheme">
.ColorScheme-Text {
color:#eff0f1;
}
</style>
</defs>
<path
style="color:#eff0f1;fill:#ffffff;fill-opacity:1;stroke:#c4c4c4;stroke-width:0.653061;stroke-dasharray:none;stroke-opacity:0.745098"
d="M 16,0.32653059 C 13.203825,0.33256487 10.217103,1.2688172 7.8105015,2.6925068 L 15.076531,9.535714 16.546909,8.0602347 11.074123,3.0374865 C 12.886877,2.2378897 14.32258,2.039882 16.121535,2.0943344 24.360239,2.3374049 29.844898,8.0651334 29.844898,16 c -0.0059,2.448149 -0.576099,4.428814 -1.773029,6.564422 l 1.417927,1.376904 C 30.912609,21.536216 31.66653,18.794443 31.67347,16 31.67347,7.3437819 24.656218,0.32653059 16,0.32653059 Z M 2.3886688,8.661248 C 0.96497918,11.06785 0.33256044,13.203826 0.32653059,16 c 0,8.656218 7.01725131,15.67347 15.67346941,15.67347 2.796175,-0.006 5.539826,-0.759985 7.946428,-2.183674 l -7.022959,-7.02551 -1.40961,1.515436 5.162481,5.099817 C 18.863176,29.881235 17.982479,29.967938 16,29.97551 8.0651334,29.97551 2.2857143,23.934866 2.2857143,16 c 0.00589,-2.448149 0.3239509,-3.699602 1.5208808,-5.83521 z"
class="ColorScheme-Text"
id="path4"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccccccccccccccccc" />
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 32 32"
version="1.1"
id="svg6"
sodipodi:docname="Shutdown.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
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="metadata10">
<rdf:RDF>
<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>
<sodipodi:namedview
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="761"
id="namedview8"
showgrid="false"
inkscape:zoom="10.746865"
inkscape:cx="10.235544"
inkscape:cy="11.6313"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg6"
inkscape:pagecheckerboard="true"
inkscape:showpageshadow="2"
inkscape:deskcolor="#d1d1d1" />
<defs
id="defs3051">
<style
type="text/css"
id="current-color-scheme">
.ColorScheme-Text {
color:#eff0f1;
}
</style>
</defs>
<path
style="color:#eff0f1;fill:#ffffff;fill-opacity:1;stroke:#c4c4c4;stroke-width:0.653061;stroke-dasharray:none;stroke-opacity:0.745098"
d="M 14.693878,0.32653059 V 0.3928555 1.7040797 12.081633 h 2.612244 V 1.6989793 0.38775508 0.32653059 H 16 Z m 3.918366,0.22193895 V 2.4045715 C 25.095451,3.8799183 29.693489,9.1741362 29.844898,16 29.315735,24.086055 23.330734,30.017508 16,29.844898 8.4780317,29.667786 2.5544897,23.934866 2.155102,16 2.5270265,9.0756179 7.0195696,3.6609369 13.387756,2.4019592 V 0.56377598 C 5.8532605,1.8373328 0.33531936,8.3586339 0.32653059,16 0.32653059,24.656218 7.3437819,31.67347 16,31.67347 24.656218,31.67347 31.67347,24.656218 31.67347,16 31.672163,8.3528477 26.152439,1.8229949 18.612244,0.54846954 Z"
class="ColorScheme-Text"
id="path4"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccccccccsccccscc" />
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 32 32"
version="1.1"
id="svg5"
sodipodi:docname="Suspend.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
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="metadata9">
<rdf:RDF>
<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>
<sodipodi:namedview
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="761"
id="namedview7"
showgrid="false"
inkscape:zoom="10.746865"
inkscape:cx="15.725516"
inkscape:cy="21.029389"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg5"
inkscape:pagecheckerboard="true"
inkscape:showpageshadow="2"
inkscape:deskcolor="#d1d1d1" />
<defs
id="defs3051">
<style
type="text/css"
id="current-color-scheme">
.ColorScheme-Text {
color:#eff0f1;
}
</style>
</defs>
<path
style="color:#eff0f1;fill:#ffffff;fill-opacity:1;stroke:#c4c4c4;stroke-width:0.651472;stroke-dasharray:none;stroke-opacity:0.745098"
id="path902-3"
d="M 8.4229848,0.39609566 C 3.402101,3.4549638 0.33428363,8.9091387 0.32573574,14.791746 c 0,9.323895 7.55293556,16.882405 16.86994326,16.882405 5.881743,-0.0052 11.335606,-3.07776 14.393268,-8.10598 l -1.029665,-1.030417 c -2.350406,1.36977 -5.019737,1.833507 -7.739664,1.840792 C 14.511954,24.611588 8.2545829,18.350784 7.6152749,9.1642763 7.619575,6.4409748 8.3422124,3.7671317 9.7099103,1.4127677 Z M 7.2422982,2.7646832 C 6.3992037,4.7933384 5.6995265,6.9671888 5.6886794,9.1642763 c 0,9.5206647 7.8133026,17.4018517 17.1303146,17.1430827 2.224496,-0.0052 4.425812,-0.713218 6.477243,-1.57412 l -0.804951,0.181348 C 25.556374,28.310876 21.682488,29.872469 17.195679,29.875663 9.2842173,29.623888 2.7634033,23.134194 2.2523312,14.791824 2.2584536,10.2995 4.2163748,6.0316884 7.6152749,3.0971689 Z M 26.59553,5.3648275 h 2.38816 V 6.5866523 H 24.207366 L 26.59553,2.9211777 H 24.20737 V 1.6993529 h 4.776316 z m -2.850992,8.1452215 h 2.38816 v 1.221825 h -4.776324 l 2.388164,-3.665501 h -2.38816 V 9.8445349 h 4.776315 z m -6.70166,-5.2130216 h 2.388159 V 9.5188652 H 14.654713 L 17.042878,5.8533776 H 14.654717 V 4.6315397 h 4.776316 z"
class="ColorScheme-Text"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccccccccccccccccccccccccccccccccccccccc" />
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
height="28"
width="28"
id="svg12"
xml:space="preserve"
viewBox="0 0 28 28"
y="0px"
x="0px"
version="1.1"
sodipodi:docname="User.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
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/"><sodipodi:namedview
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="761"
id="namedview8"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="13.088408"
inkscape:cx="14.975083"
inkscape:cy="18.41324"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g4"
inkscape:showpageshadow="2"
inkscape:pagecheckerboard="true"
inkscape:deskcolor="#d1d1d1" /><metadata
id="metadata18"><rdf:RDF><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><defs
id="defs16" /><g
id="g6"
transform="scale(0.06862745)"
style="stroke:#000000;stroke-opacity:1"><g
id="g4"
style="stroke:#000000;stroke-opacity:1"><path
id="path2"
d="m 204,203.99999 c 54.16552,0 98.48277,-44.31724 98.48277,-98.48276 0,-54.165517 -44.31725,-98.482761 -98.48277,-98.482761 -54.16552,0 -98.48277,44.317244 -98.48277,98.482761 0,54.16552 44.31725,98.48276 98.48277,98.48276 z m 0,49.24139 c -66.47586,0 -196.965531,32.0069 -196.965531,98.48276 v 49.24138 H 400.96553 v -49.24138 c 0,-66.47586 -130.48966,-98.48276 -196.96553,-98.48276 z"
inkscape:connector-curvature="0"
style="mix-blend-mode:normal;stroke:#c4c4c4;stroke-width:7.28571;stroke-dasharray:none;stroke-opacity:0.745098;fill:#ffffff;fill-opacity:1" /></g></g></svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -45,7 +45,9 @@ Column {
color: root.palette.text
renderType: Text.QtRendering
function updateTime() {
text = new Date().toLocaleTimeString(Qt.locale(config.Locale), config.HourFormat == "long" ? Locale.LongFormat : config.HourFormat !== "" ? config.HourFormat : Locale.ShortFormat)
text = new Date().toLocaleTimeString(Qt.locale(config.Locale),
config.HourFormat == "long" ? Locale.LongFormat :
config.HourFormat !== "" ? config.HourFormat : Locale.ShortFormat)
}
}
@ -54,8 +56,10 @@ Column {
anchors.horizontalCenter: parent.horizontalCenter
color: root.palette.text
renderType: Text.QtRendering
function updateTime() {
text = new Date().toLocaleDateString(Qt.locale(config.Locale), config.DateFormat == "short" ? Locale.ShortFormat : config.DateFormat !== "" ? config.DateFormat : Locale.LongFormat)
function updateDate() {
text = new Date().toLocaleDateString(Qt.locale(config.Locale),
config.DateFormat == "short" ? Locale.ShortFormat :
config.DateFormat !== "" ? config.DateFormat : Locale.LongFormat)
}
}
@ -64,13 +68,14 @@ Column {
repeat: true
running: true
onTriggered: {
dateLabel.updateTime()
dateLabel.updateDate()
timeLabel.updateTime()
}
}
Component.onCompleted: {
dateLabel.updateTime()
dateLabel.updateDate()
timeLabel.updateTime()
}
}

View File

@ -45,6 +45,7 @@ Column {
id: selectUser
displayText: ""
width: parent.height
height: parent.height
anchors.left: parent.left
@ -96,7 +97,8 @@ Column {
icon.width: parent.height * 0.25
enabled: false
icon.color: root.palette.text
icon.source: Qt.resolvedUrl("../Assets/User.svgz")
flat: true
icon.source: Qt.resolvedUrl("../Assets/User.svg")
}
background: Rectangle {
@ -181,6 +183,7 @@ Column {
TextField {
id: username
text: config.ForceLastUser == "true" ? selectUser.currentText : null
font.pointSize: root.font.pointSize
font.capitalization: config.AllowBadUsernames == "false" ? Font.Capitalize : Font.MixedCase
anchors.centerIn: parent
height: root.font.pointSize * 3
@ -229,6 +232,7 @@ Column {
TextField {
id: password
font.pointSize: root.font.pointSize
anchors.centerIn: parent
height: root.font.pointSize * 3
width: parent.width
@ -238,7 +242,7 @@ Column {
placeholderText: config.TranslatePlaceholderPassword || textConstants.password
horizontalAlignment: TextInput.AlignHCenter
passwordCharacter: "•"
passwordMaskDelay: config.ForceHideCompletePassword == "true" ? undefined : 1000
passwordMaskDelay: config.ForceHideCompletePassword == "true" ? undefined : 500
renderType: Text.QtRendering
background: Rectangle {
color: "transparent"

View File

@ -61,3 +61,4 @@ ColumnLayout {
}
}

View File

@ -30,10 +30,10 @@ RowLayout {
spacing: root.font.pointSize
property var suspend: ["Suspend", config.TranslateSuspend || textConstants.suspend, sddm.canSuspend]
property var hibernate: ["Hibernate", config.TranslateHibernate || textConstants.hibernate, sddm.canHibernate]
property var reboot: ["Reboot", config.TranslateReboot || textConstants.reboot, sddm.canReboot]
property var shutdown: ["Shutdown", config.TranslateShutdown || textConstants.shutdown, sddm.canPowerOff]
readonly property var suspend: ["Suspend", config.TranslateSuspend || textConstants.suspend, sddm.canSuspend]
readonly property var hibernate: ["Hibernate", config.TranslateHibernate || textConstants.hibernate, sddm.canHibernate]
readonly property var reboot: ["Reboot", config.TranslateReboot || textConstants.reboot, sddm.canReboot]
readonly property var shutdown: ["Shutdown", config.TranslateShutdown || textConstants.shutdown, sddm.canPowerOff]
property Control exposedSession
@ -46,7 +46,7 @@ RowLayout {
text: modelData[1]
font.pointSize: root.font.pointSize * 0.8
Layout.alignment: Qt.AlignHCenter
icon.source: modelData ? Qt.resolvedUrl("../Assets/" + modelData[0] + ".svgz") : ""
icon.source: modelData ? Qt.resolvedUrl("../Assets/" + modelData[0] + ".svg") : ""
icon.height: 2 * Math.round((root.font.pointSize * 3) / 2)
icon.width: 2 * Math.round((root.font.pointSize * 3) / 2)
display: AbstractButton.TextUnderIcon
@ -116,9 +116,7 @@ RowLayout {
}
}
]
}
}
}

View File

@ -81,7 +81,8 @@ Item {
icon.width: parent.height * 0.25
enabled: false
icon.color: root.palette.text
icon.source: Qt.resolvedUrl("../Assets/User.svgz")
flat: true
icon.source: Qt.resolvedUrl("../Assets/User.svg")
}
background: Rectangle {
@ -159,7 +160,6 @@ Item {
}
}
]
}
TextField {
@ -198,5 +198,5 @@ Item {
}
]
}
}

View File

@ -22,10 +22,11 @@
// along with SDDM Sugar Candy. If not, see <https://www.gnu.org/licenses/>
//
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Qt5Compat.GraphicalEffects
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Window
import "Components"
Pane {
@ -45,7 +46,8 @@ Pane {
palette.window: config.BackgroundColor
font.family: config.Font
font.pointSize: config.FontSize !== "" ? config.FontSize : parseInt(height / 80)
font.pointSize: config.FontSize !== "" ? config.FontSize :
Screen.primaryOrientation == Qt.PortraitOrientation ? parseInt(height / 160) : parseInt(height / 80)
focus: true
property bool leftleft: config.HaveFormBackground == "true" &&
@ -97,9 +99,9 @@ Pane {
LoginForm {
id: form
height: virtualKeyboard.state == "visible" ? parent.height - virtualKeyboard.implicitHeight : parent.height
width: parent.width / 3
// If in portrait orientation we should take up half instead of 40% of the screen to avoid crowding
width: parent.width / 2.5
anchors.horizontalCenter: config.FormPosition == "center" ? parent.horizontalCenter : undefined
anchors.left: config.FormPosition == "left" ? parent.left : undefined
anchors.right: config.FormPosition == "right" ? parent.right : undefined
@ -107,24 +109,24 @@ Pane {
z: 1
}
Button {
id: vkb
onClicked: virtualKeyboard.switchState()
visible: virtualKeyboard.status == Loader.Ready && config.ForceHideVirtualKeyboardButton == "false"
anchors.bottom: parent.bottom
anchors.bottomMargin: implicitHeight
anchors.horizontalCenter: form.horizontalCenter
z: 1
contentItem: Text {
text: config.TranslateVirtualKeyboardButton || "Virtual Keyboard"
color: parent.visualFocus ? palette.highlight : palette.text
font.pointSize: root.font.pointSize * 0.8
}
background: Rectangle {
id: vkbbg
color: "transparent"
}
}
// Button {
// id: vkb
// onClicked: virtualKeyboard.switchState()
// visible: virtualKeyboard.status == Loader.Ready && config.ForceHideVirtualKeyboardButton == "false"
// anchors.bottom: parent.bottom
// anchors.bottomMargin: implicitHeight
// anchors.horizontalCenter: form.horizontalCenter
// z: 1
// contentItem: Text {
// text: config.TranslateVirtualKeyboardButton || "Virtual Keyboard"
// color: parent.visualFocus ? palette.highlight : palette.text
// font.pointSize: root.font.pointSize * 0.8
// }
// background: Rectangle {
// id: vkbbg
// color: "transparent"
// }
// }
Loader {
id: virtualKeyboard
@ -272,3 +274,4 @@ Pane {
}
}
}

View File

@ -14,3 +14,4 @@ TranslationsDirectory=translations
Email=valeria@fadeeva.me
Theme-Id=Melawy
Theme-API=2.11
QtVersion=6

View File

@ -13,8 +13,6 @@ ScreenWidth="1920"
ScreenHeight="1080"
## Adjust to your resolution to help SDDM speed up on calculations
## [Blur Settings]
FullBlur="false"
@ -24,8 +22,6 @@ PartialBlur="true"
BlurRadius="100"
## Set the strength of the blur effect. Anything above 100 is pretty strong and might slow down the rendering time. 0 is like setting false for any blur.
## [Design Customizations]
HaveFormBackground="false"
@ -40,7 +36,7 @@ BackgroundImageHAlignment="center"
BackgroundImageVAlignment="center"
## As before but for the vertical position of the background picture relative to its visible area.
MainColor=#A03d40
MainColor=#FF3d40
## Used for all elements when not focused/hovered etc. Usually the best effect is achieved by having this be either white or a very dark grey like #444 (not black for smoother antialias)
## Colors can be HEX or Qt names (e.g. red/salmon/blanchedalmond). See https://doc.qt.io/qt-5/qml-color.html
@ -50,7 +46,7 @@ AccentColor=#E03D3D
BackgroundColor=#EEEEEE
## Used for the user and session selection background as well as for ScreenPadding and FormBackground when either is true. If PartialBlur and FormBackground are both enabled this color will blend with the blur effect.
OverrideLoginButtonTextColor=
OverrideLoginButtonTextColor=""
## The text of the login button may become difficult to read depending on your color choices. Use this option to set it independently for legibility.
InterfaceShadowSize="6"
@ -68,11 +64,9 @@ ScreenPadding="0"
Font="Noto Sans"
## If you want to choose a custom font it will have to be available to the X root user. See https://wiki.archlinux.org/index.php/fonts#Manual_installation
FontSize=""
FontSize="11"
## Only set a fixed value if fonts are way too small for your resolution. Preferrably kept empty.
## [Interface Behavior]
ForceRightToLeft="false"
@ -99,8 +93,6 @@ AllowEmptyPassword="false"
AllowBadUsernames="false"
## Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! Also shows username as is instead of capitalized.
## [Locale Settings]
Locale=""
@ -112,14 +104,12 @@ HourFormat="HH:mm"
DateFormat="dddd, d MMMM"
## Defaults to Locale.LongFormat - Accepts "short" or a custom string like "dddd, d 'of' MMMM". See http://doc.qt.io/qt-5/qml-qtqml-date.html
## [Translations]
HeaderText="Welcome!"
## Header can be empty to not display any greeting at all. Keep it short.
## SDDM may lack proper translation for every element. Suger defaults to SDDM translations. Please help translate SDDM as much as possible for your language: https://github.com/sddm/sddm/wiki/Localization. These are in order as they appear on screen.
## SDDM may lack proper translation for every element. Please help translate SDDM as much as possible for your language: https://github.com/sddm/sddm/wiki/Localization. These are in order as they appear on screen.
TranslatePlaceholderUsername=""
TranslatePlaceholderPassword=""