@@ -66,18 +66,18 @@ Item {
66
66
width: main .width
67
67
height: isTop ? main .height - 200 * PlasmaCore .Units .devicePixelRatio : main .height - y
68
68
color: plasmoid .configuration .theming == 0 ? " #131314" : plasmoid .configuration .theming == 1 ? " #ECEDEE" : PlasmaCore .Theme .backgroundColor
69
- radius: plasmoid . configuration . floating ? 10 : 0
69
+ radius: 10
70
70
Rectangle {
71
71
id: topCorner
72
- visible: plasmoid . configuration . floating & ! isTop
72
+ visible: true
73
73
anchors .top : backdrop .top
74
74
color: backdrop .color
75
75
width: backdrop .width
76
76
height: 20
77
77
}
78
78
Rectangle {
79
79
id: bottomCorner
80
- visible: plasmoid .configuration .floating & isTop
80
+ visible: ! plasmoid .configuration .floating
81
81
anchors .bottom : backdrop .bottom
82
82
color: backdrop .color
83
83
width: backdrop .width
94
94
visualParent: root
95
95
isTop: main .isTop
96
96
avatarWidth: 125 * PlasmaCore .Units .devicePixelRatio
97
- visible: root .visible
97
+ visible: root .visible && ! isTop ? true : root . visible && plasmoid . configuration . floating ? true : false
98
98
}
99
99
}
100
100
// Power & Settings
@@ -111,7 +111,7 @@ Item {
111
111
PlasmaComponents .Label {
112
112
id: nameLabel
113
113
x: main .width / 2 - width / 2 // This centeres the Text
114
- y: isTop ? main .height - height - 80 * PlasmaCore .Units .devicePixelRatio : 80 * PlasmaCore .Units .devicePixelRatio
114
+ y: isTop ? main .height - height - 125 * PlasmaCore .Units .devicePixelRatio : 80 * PlasmaCore .Units .devicePixelRatio
115
115
text: plasmoid .configuration .enableGreeting && plasmoid .configuration .customGreeting ? plasmoid .configuration .customGreeting : plasmoid .configuration .enableGreeting ? ' Hi, ' + kuser .fullName : i18n (" %1@%2" , kuser .loginName , kuser .host )
116
116
color: textColor
117
117
font .family : textFont
@@ -122,7 +122,7 @@ Item {
122
122
Item {
123
123
Rectangle {
124
124
x: 25 * PlasmaCore .Units .devicePixelRatio
125
- y: isTop ? main .height - height - 125 * PlasmaCore . Units . devicePixelRatio : 125 * PlasmaCore .Units .devicePixelRatio
125
+ y: isTop ? main .height - height - 55 : 125 * PlasmaCore .Units .devicePixelRatio
126
126
width: main .width - 2 * x
127
127
height: 45 * PlasmaCore .Units .devicePixelRatio
128
128
radius: 6
@@ -311,7 +311,7 @@ Item {
311
311
width: main .width
312
312
height: 40 * PlasmaCore .Units .devicePixelRatio
313
313
anchors .bottom : backdrop .bottom
314
- radius: ! isTop ? backdrop .radius : 0
314
+ radius: ! bottomCorner . visible ? backdrop .radius : 0
315
315
gradient: Gradient {
316
316
GradientStop { position: 0.0 ; color: " transparent" }
317
317
GradientStop { position: 1.0 ; color: Qt .darker (backdrop .color , 1.5 )}
0 commit comments