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
ba865918
Commit
ba865918
authored
Sep 29, 2020
by
Nate Graham
Browse files
[applets/notifications] Port a few missed properties to PlasmaCore.Units
parent
b470c06f
Changes
1
Hide whitespace changes
Inline
Side-by-side
applets/notifications/package/contents/ui/global/Globals.qml
View file @
ba865918
...
...
@@ -179,11 +179,11 @@ QtObject {
// Make it wider when on the top or the bottom center, since there's more horizontal
// space available without looking weird
// On mobile however we don't really want to have larger notifications
property
int
popupWidth
:
(
popupLocation
&
Qt
.
AlignHCenter
)
&&
!
Kirigami
.
Settings
.
isMobile
?
u
nits
.
gridUnit
*
22
:
u
nits
.
gridUnit
*
18
property
int
popupEdgeDistance
:
u
nits
.
largeSpacing
*
2
property
int
popupWidth
:
(
popupLocation
&
Qt
.
AlignHCenter
)
&&
!
Kirigami
.
Settings
.
isMobile
?
PlasmaCore
.
U
nits
.
gridUnit
*
22
:
PlasmaCore
.
U
nits
.
gridUnit
*
18
property
int
popupEdgeDistance
:
PlasmaCore
.
U
nits
.
largeSpacing
*
2
// Reduce spacing between popups when centered so the stack doesn't intrude into the
// view as much
property
int
popupSpacing
:
(
popupLocation
&
Qt
.
AlignHCenter
)
&&
!
Kirigami
.
Settings
.
isMobile
?
u
nits
.
smallSpacing
:
u
nits
.
largeSpacing
property
int
popupSpacing
:
(
popupLocation
&
Qt
.
AlignHCenter
)
&&
!
Kirigami
.
Settings
.
isMobile
?
PlasmaCore
.
U
nits
.
smallSpacing
:
PlasmaCore
.
U
nits
.
largeSpacing
// How much vertical screen real estate the notification popups may consume
readonly
property
real
popupMaximumScreenFill
:
0.8
...
...
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