Skip to content

Commit

Permalink
Merge pull request #25 from newcomb-luke/main
Browse files Browse the repository at this point in the history
Fixes Offsets for Top Display of Plasmoid
  • Loading branch information
SnoutBug authored Apr 26, 2022
2 parents a61b819 + f274826 commit bb90f17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contents/ui/MainView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Item {
//Power & Settings
Item {
Header {
id: powerSettings
x: main.width - width - iconSize / 2
y: isTop ? main.height - 2 * height - iconSize / 2 : iconSize / 2
iconSize: 20 * PlasmaCore.Units.devicePixelRatio
Expand All @@ -115,7 +116,7 @@ Item {
PlasmaComponents.Label {
id: nameLabel
x: main.width / 2 - width / 2 //This centeres the Text
y: isTop ? main.height - height - 125 * PlasmaCore.Units.devicePixelRatio : 80 * PlasmaCore.Units.devicePixelRatio
y: isTop ? main.height - height - 135 * PlasmaCore.Units.devicePixelRatio : 80 * PlasmaCore.Units.devicePixelRatio
text: plasmoid.configuration.enableGreeting && plasmoid.configuration.customGreeting ? plasmoid.configuration.customGreeting : plasmoid.configuration.enableGreeting ? 'Hi, ' + kuser.fullName : i18n("%1@%2", kuser.loginName, kuser.host)
color: textColor
font.family: textFont
Expand All @@ -126,7 +127,7 @@ Item {
Item {
Rectangle {
x: 25 * PlasmaCore.Units.devicePixelRatio
y: isTop ? main.height - height - 55 : 125 * PlasmaCore.Units.devicePixelRatio
y: isTop ? main.height - height - (2 * powerSettings.height + powerSettings.iconSize / 2) - 10 * PlasmaCore.Units.devicePixelRatio : 125 * PlasmaCore.Units.devicePixelRatio
width: main.width - 2 * x
height: 45 * PlasmaCore.Units.devicePixelRatio
radius: 6
Expand Down

0 comments on commit bb90f17

Please sign in to comment.