Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
6f6c7339
Commit
6f6c7339
authored
May 12, 2020
by
Marco Martin
Browse files
sync formfactor from plasmoid to faces
parent
ddefcfb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
applets/systemmonitor/systemmonitor/package/contents/ui/CompactRepresentation.qml
View file @
6f6c7339
...
...
@@ -46,9 +46,29 @@ Control {
Kirigami.Theme.textColor
:
PlasmaCore
.
ColorScope
.
textColor
leftPadding
:
0
topPadding
:
0
rightPadding
:
0
bottomPadding
:
0
anchors.fill
:
parent
contentItem
:
plasmoid
.
nativeInterface
.
faceController
.
compactRepresentation
Binding
{
target
:
plasmoid
.
nativeInterface
.
faceController
.
compactRepresentation
property
:
"
formFactor
"
value
:
{
switch
(
plasmoid
.
formFactor
)
{
case
Faces
.
SensorFace
.
Horizontal
:
return
PlasmaCore
.
Types
.
Horizontal
;
case
Faces
.
SensorFace
.
Verical
:
return
PlasmaCore
.
Types
.
Vertical
;
default
:
return
PlasmaCore
.
Types
.
Planar
;
}
}
}
MouseArea
{
parent
:
chartFace
anchors.fill
:
parent
...
...
applets/systemmonitor/systemmonitor/package/contents/ui/FullRepresentation.qml
View file @
6f6c7339
...
...
@@ -57,5 +57,20 @@ Control {
Kirigami.Theme.textColor
:
PlasmaCore
.
ColorScope
.
textColor
contentItem
:
plasmoid
.
nativeInterface
.
faceController
.
fullRepresentation
Binding
{
target
:
plasmoid
.
nativeInterface
.
faceController
.
compactRepresentation
property
:
"
formFactor
"
value
:
{
switch
(
plasmoid
.
formFactor
)
{
case
Faces
.
SensorFace
.
Horizontal
:
return
PlasmaCore
.
Types
.
Horizontal
;
case
Faces
.
SensorFace
.
Verical
:
return
PlasmaCore
.
Types
.
Vertical
;
default
:
return
PlasmaCore
.
Types
.
Planar
;
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment