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 Desktop
Commits
3564a1e0
Commit
3564a1e0
authored
Sep 24, 2020
by
Jan Blackquill
🌈
Browse files
Port away from using units as context properties
This commit ports away from units.* to PlasmaCore.Units.*
parent
8ea04438
Changes
93
Hide whitespace changes
Inline
Side-by-side
applets/kicker/package/contents/ui/CompactRepresentation.qml
View file @
3564a1e0
...
...
@@ -49,25 +49,25 @@ Item {
var
scaledHeight
=
Math
.
floor
(
parent
.
width
*
(
buttonIcon
.
implicitHeight
/
buttonIcon
.
implicitWidth
));
root
.
Layout
.
minimumHeight
=
scaledHeight
;
root
.
Layout
.
maximumHeight
=
scaledHeight
;
root
.
Layout
.
minimumWidth
=
u
nits
.
iconSizes
.
small
;
root
.
Layout
.
maximumWidth
=
inPanel
?
u
nits
.
iconSizeHints
.
panel
:
-
1
;
root
.
Layout
.
minimumWidth
=
PlasmaCore
.
U
nits
.
iconSizes
.
small
;
root
.
Layout
.
maximumWidth
=
inPanel
?
PlasmaCore
.
U
nits
.
iconSizeHints
.
panel
:
-
1
;
}
else
{
var
scaledWidth
=
Math
.
floor
(
parent
.
height
*
(
buttonIcon
.
implicitWidth
/
buttonIcon
.
implicitHeight
));
root
.
Layout
.
minimumWidth
=
scaledWidth
;
root
.
Layout
.
maximumWidth
=
scaledWidth
;
root
.
Layout
.
minimumHeight
=
u
nits
.
iconSizes
.
small
;
root
.
Layout
.
maximumHeight
=
inPanel
?
u
nits
.
iconSizeHints
.
panel
:
-
1
;
root
.
Layout
.
minimumHeight
=
PlasmaCore
.
U
nits
.
iconSizes
.
small
;
root
.
Layout
.
maximumHeight
=
inPanel
?
PlasmaCore
.
U
nits
.
iconSizeHints
.
panel
:
-
1
;
}
}
else
{
root
.
Layout
.
minimumWidth
=
u
nits
.
iconSizes
.
small
;
root
.
Layout
.
maximumWidth
=
inPanel
?
u
nits
.
iconSizeHints
.
panel
:
-
1
;
root
.
Layout
.
minimumHeight
=
u
nits
.
iconSizes
.
small
;
root
.
Layout
.
maximumHeight
=
inPanel
?
u
nits
.
iconSizeHints
.
panel
:
-
1
;
root
.
Layout
.
minimumWidth
=
PlasmaCore
.
U
nits
.
iconSizes
.
small
;
root
.
Layout
.
maximumWidth
=
inPanel
?
PlasmaCore
.
U
nits
.
iconSizeHints
.
panel
:
-
1
;
root
.
Layout
.
minimumHeight
=
PlasmaCore
.
U
nits
.
iconSizes
.
small
;
root
.
Layout
.
maximumHeight
=
inPanel
?
PlasmaCore
.
U
nits
.
iconSizeHints
.
panel
:
-
1
;
}
}
Connections
{
target
:
u
nits
.
iconSizeHints
target
:
PlasmaCore
.
U
nits
.
iconSizeHints
onPanelChanged
:
root
.
updateSizeHints
()
}
...
...
applets/kicker/package/contents/ui/ConfigGeneral.qml
View file @
3564a1e0
...
...
@@ -58,8 +58,8 @@ Kirigami.FormLayout {
Kirigami.FormData.label
:
i18n
(
"
Icon:
"
)
implicitWidth
:
previewFrame
.
width
+
u
nits
.
smallSpacing
*
2
implicitHeight
:
previewFrame
.
height
+
u
nits
.
smallSpacing
*
2
implicitWidth
:
previewFrame
.
width
+
PlasmaCore
.
U
nits
.
smallSpacing
*
2
implicitHeight
:
previewFrame
.
height
+
PlasmaCore
.
U
nits
.
smallSpacing
*
2
// Just to provide some visual feedback when dragging;
// cannot have checked without checkable enabled
...
...
@@ -116,12 +116,12 @@ Kirigami.FormLayout {
anchors.centerIn
:
parent
imagePath
:
plasmoid
.
location
===
PlasmaCore
.
Types
.
Vertical
||
plasmoid
.
location
===
PlasmaCore
.
Types
.
Horizontal
?
"
widgets/panel-background
"
:
"
widgets/background
"
width
:
u
nits
.
iconSizes
.
large
+
fixedMargins
.
left
+
fixedMargins
.
right
height
:
u
nits
.
iconSizes
.
large
+
fixedMargins
.
top
+
fixedMargins
.
bottom
width
:
PlasmaCore
.
U
nits
.
iconSizes
.
large
+
fixedMargins
.
left
+
fixedMargins
.
right
height
:
PlasmaCore
.
U
nits
.
iconSizes
.
large
+
fixedMargins
.
top
+
fixedMargins
.
bottom
PlasmaCore.IconItem
{
anchors.centerIn
:
parent
width
:
u
nits
.
iconSizes
.
large
width
:
PlasmaCore
.
U
nits
.
iconSizes
.
large
height
:
width
source
:
configGeneral
.
cfg_useCustomButtonImage
?
configGeneral
.
cfg_customButtonImage
:
configGeneral
.
cfg_icon
}
...
...
applets/kicker/package/contents/ui/DashboardRepresentation.qml
View file @
3564a1e0
...
...
@@ -22,6 +22,7 @@ import QtGraphicalEffects 1.0
import
org
.
kde
.
plasma
.
core
2.1
as
PlasmaCore
import
org
.
kde
.
plasma
.
components
2.0
as
PlasmaComponents
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
import
org
.
kde
.
plasma
.
extras
2.0
as
PlasmaExtras
import
org
.
kde
.
kquickcontrolsaddons
2.0
import
org
.
kde
.
kwindowsystem
1.0
...
...
@@ -41,11 +42,11 @@ import "code/tools.js" as Tools
Kicker.DashboardWindow
{
id
:
root
property
bool
smallScreen
:
((
Math
.
floor
(
width
/
u
nits
.
iconSizes
.
huge
)
<=
22
)
||
(
Math
.
floor
(
height
/
u
nits
.
iconSizes
.
huge
)
<=
14
))
property
bool
smallScreen
:
((
Math
.
floor
(
width
/
PlasmaCore
.
U
nits
.
iconSizes
.
huge
)
<=
22
)
||
(
Math
.
floor
(
height
/
PlasmaCore
.
U
nits
.
iconSizes
.
huge
)
<=
14
))
property
int
iconSize
:
smallScreen
?
u
nits
.
iconSizes
.
large
:
u
nits
.
iconSizes
.
huge
property
int
iconSize
:
smallScreen
?
PlasmaCore
.
U
nits
.
iconSizes
.
large
:
PlasmaCore
.
U
nits
.
iconSizes
.
huge
property
int
cellSize
:
iconSize
+
theme
.
mSize
(
theme
.
defaultFont
).
height
+
(
2
*
u
nits
.
smallSpacing
)
+
(
2
*
PlasmaCore
.
U
nits
.
smallSpacing
)
+
(
2
*
Math
.
max
(
highlightItemSvg
.
margins
.
top
+
highlightItemSvg
.
margins
.
bottom
,
highlightItemSvg
.
margins
.
left
+
highlightItemSvg
.
margins
.
right
))
property
int
columns
:
Math
.
floor
(((
smallScreen
?
85
:
80
)
/
100
)
*
Math
.
ceil
(
width
/
cellSize
))
...
...
@@ -319,11 +320,11 @@ Kicker.DashboardWindow {
anchors
{
left
:
searchHeading
.
right
leftMargin
:
u
nits
.
largeSpacing
leftMargin
:
PlasmaCore
.
U
nits
.
largeSpacing
verticalCenter
:
searchHeading
.
verticalCenter
}
width
:
u
nits
.
iconSizes
.
large
width
:
PlasmaCore
.
U
nits
.
iconSizes
.
large
height
:
width
visible
:
(
searchField
.
text
!=
""
)
...
...
@@ -361,15 +362,15 @@ Kicker.DashboardWindow {
anchors
{
top
:
parent
.
top
topMargin
:
u
nits
.
gridUnit
*
(
smallScreen
?
8
:
10
)
topMargin
:
PlasmaCore
.
U
nits
.
gridUnit
*
(
smallScreen
?
8
:
10
)
bottom
:
parent
.
bottom
bottomMargin
:
(
u
nits
.
gridUnit
*
2
)
bottomMargin
:
(
PlasmaCore
.
U
nits
.
gridUnit
*
2
)
horizontalCenter
:
parent
.
horizontalCenter
}
width
:
(
root
.
columns
*
root
.
cellSize
)
+
(
2
*
spacing
)
spacing
:
u
nits
.
gridUnit
*
2
spacing
:
PlasmaCore
.
U
nits
.
gridUnit
*
2
Item
{
id
:
favoritesColumn
...
...
@@ -379,7 +380,7 @@ Kicker.DashboardWindow {
bottom
:
parent
.
bottom
}
width
:
(
columns
*
root
.
cellSize
)
+
u
nits
.
gridUnit
width
:
(
columns
*
root
.
cellSize
)
+
PlasmaCore
.
U
nits
.
gridUnit
property
int
columns
:
3
...
...
@@ -392,7 +393,7 @@ Kicker.DashboardWindow {
top
:
parent
.
top
}
x
:
u
nits
.
smallSpacing
x
:
PlasmaCore
.
U
nits
.
smallSpacing
width
:
parent
.
width
-
x
elide
:
Text
.
ElideRight
...
...
@@ -406,7 +407,7 @@ Kicker.DashboardWindow {
opacity
:
(
enabled
?
1.0
:
0.3
)
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
u
nits
.
longDuration
;
velocity
:
0.01
}
}
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
PlasmaCore
.
U
nits
.
longDuration
;
velocity
:
0.01
}
}
}
PlasmaCore.SvgItem
{
...
...
@@ -418,7 +419,7 @@ Kicker.DashboardWindow {
top
:
favoritesColumnLabel
.
bottom
}
width
:
parent
.
width
-
u
nits
.
gridUnit
width
:
parent
.
width
-
PlasmaCore
.
U
nits
.
gridUnit
height
:
lineSvg
.
horLineHeight
svg
:
lineSvg
...
...
@@ -426,7 +427,7 @@ Kicker.DashboardWindow {
opacity
:
(
enabled
?
1.0
:
0.3
)
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
u
nits
.
longDuration
;
velocity
:
0.01
}
}
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
PlasmaCore
.
U
nits
.
longDuration
;
velocity
:
0.01
}
}
}
ItemGridView
{
...
...
@@ -436,11 +437,11 @@ Kicker.DashboardWindow {
anchors
{
top
:
favoritesColumnLabelUnderline
.
bottom
topMargin
:
u
nits
.
largeSpacing
topMargin
:
PlasmaCore
.
U
nits
.
largeSpacing
}
property
int
rows
:
(
Math
.
floor
((
parent
.
height
-
favoritesColumnLabel
.
height
-
favoritesColumnLabelUnderline
.
height
-
u
nits
.
largeSpacing
)
/
root
.
cellSize
)
-
favoritesColumnLabelUnderline
.
height
-
PlasmaCore
.
U
nits
.
largeSpacing
)
/
root
.
cellSize
)
-
systemFavoritesGrid
.
rows
)
width
:
parent
.
width
...
...
@@ -457,7 +458,7 @@ Kicker.DashboardWindow {
opacity
:
(
enabled
?
1.0
:
0.3
)
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
u
nits
.
longDuration
;
velocity
:
0.01
}
}
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
PlasmaCore
.
U
nits
.
longDuration
;
velocity
:
0.01
}
}
onCurrentIndexChanged
:
{
preloadAllAppsTimer
.
defer
();
...
...
@@ -561,7 +562,7 @@ Kicker.DashboardWindow {
anchors.top
:
parent
.
top
width
:
(
columns
*
root
.
cellSize
)
+
u
nits
.
gridUnit
width
:
(
columns
*
root
.
cellSize
)
+
PlasmaCore
.
U
nits
.
gridUnit
height
:
Math
.
floor
(
parent
.
height
/
root
.
cellSize
)
*
root
.
cellSize
+
mainGridContainer
.
headerHeight
property
int
columns
:
root
.
columns
-
favoritesColumn
.
columns
-
filterListColumn
.
columns
...
...
@@ -581,7 +582,7 @@ Kicker.DashboardWindow {
enabled
:
(
opacity
==
1.0
)
?
1
:
0
property
int
headerHeight
:
mainColumnLabel
.
height
+
mainColumnLabelUnderline
.
height
+
u
nits
.
largeSpacing
property
int
headerHeight
:
mainColumnLabel
.
height
+
mainColumnLabelUnderline
.
height
+
PlasmaCore
.
U
nits
.
largeSpacing
opacity
:
{
if
(
tabBar
.
activeTab
==
0
&&
root
.
searching
)
{
...
...
@@ -608,7 +609,7 @@ Kicker.DashboardWindow {
top
:
parent
.
top
}
x
:
u
nits
.
smallSpacing
x
:
PlasmaCore
.
U
nits
.
smallSpacing
width
:
parent
.
width
-
x
elide
:
Text
.
ElideRight
...
...
@@ -631,7 +632,7 @@ Kicker.DashboardWindow {
top
:
mainColumnLabel
.
bottom
}
width
:
parent
.
width
-
u
nits
.
gridUnit
width
:
parent
.
width
-
PlasmaCore
.
U
nits
.
gridUnit
height
:
lineSvg
.
horLineHeight
svg
:
lineSvg
...
...
@@ -643,7 +644,7 @@ Kicker.DashboardWindow {
anchors
{
top
:
mainColumnLabelUnderline
.
bottom
topMargin
:
u
nits
.
largeSpacing
topMargin
:
PlasmaCore
.
U
nits
.
largeSpacing
}
width
:
parent
.
width
...
...
@@ -651,7 +652,7 @@ Kicker.DashboardWindow {
cellWidth
:
(
tabBar
.
activeTab
==
0
?
root
.
cellSize
:
root
.
cellSize
*
2
)
cellHeight
:
cellWidth
iconSize
:
(
tabBar
.
activeTab
==
0
?
root
.
iconSize
:
cellWidth
-
(
u
nits
.
largeSpacing
*
2
))
iconSize
:
(
tabBar
.
activeTab
==
0
?
root
.
iconSize
:
cellWidth
-
(
PlasmaCore
.
U
nits
.
largeSpacing
*
2
))
model
:
funnelModel
...
...
@@ -800,7 +801,7 @@ Kicker.DashboardWindow {
anchors
{
top
:
parent
.
top
topMargin
:
mainColumnLabelUnderline
.
y
+
mainColumnLabelUnderline
.
height
+
u
nits
.
largeSpacing
topMargin
:
mainColumnLabelUnderline
.
y
+
mainColumnLabelUnderline
.
height
+
PlasmaCore
.
U
nits
.
largeSpacing
bottom
:
parent
.
bottom
}
...
...
@@ -811,9 +812,9 @@ Kicker.DashboardWindow {
PlasmaExtras.ScrollArea
{
id
:
filterListScrollArea
x
:
root
.
visible
?
0
:
u
nits
.
gridUnit
x
:
root
.
visible
?
0
:
PlasmaCore
.
U
nits
.
gridUnit
Behavior
on
x
{
SmoothedAnimation
{
duration
:
u
nits
.
longDuration
;
velocity
:
0.01
}
}
Behavior
on
x
{
SmoothedAnimation
{
duration
:
PlasmaCore
.
U
nits
.
longDuration
;
velocity
:
0.01
}
}
width
:
parent
.
width
height
:
mainGrid
.
height
...
...
@@ -824,7 +825,7 @@ Kicker.DashboardWindow {
opacity
:
root
.
visible
?
(
root
.
searching
?
0.30
:
1.0
)
:
0.3
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
u
nits
.
longDuration
;
velocity
:
0.01
}
}
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
PlasmaCore
.
U
nits
.
longDuration
;
velocity
:
0.01
}
}
verticalScrollBarPolicy
:
(
opacity
==
1.0
)
?
Qt
.
ScrollBarAsNeeded
:
Qt
.
ScrollBarAlwaysOff
...
...
@@ -990,7 +991,7 @@ Kicker.DashboardWindow {
width
:
(
highlightItemSvg
.
margins
.
left
+
filterList
.
currentItem
.
textWidth
+
highlightItemSvg
.
margins
.
right
+
u
nits
.
smallSpacing
)
+
PlasmaCore
.
U
nits
.
smallSpacing
)
visible
:
filterList
.
currentItem
}
...
...
@@ -1013,7 +1014,7 @@ Kicker.DashboardWindow {
}
filterListColumn
.
columns
=
Math
.
ceil
(
width
/
root
.
cellSize
);
filterListScrollArea
.
width
=
width
+
hItemMargins
+
(
u
nits
.
gridUnit
*
2
);
filterListScrollArea
.
width
=
width
+
hItemMargins
+
(
PlasmaCore
.
U
nits
.
gridUnit
*
2
);
}
function
applyFilter
()
{
...
...
applets/kicker/package/contents/ui/DashboardTabButton.qml
View file @
3564a1e0
...
...
@@ -20,13 +20,14 @@
import
QtQuick
2.4
import
org
.
kde
.
plasma
.
plasmoid
2.0
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
import
org
.
kde
.
plasma
.
extras
2.0
as
PlasmaExtras
Item
{
id
:
tab
width
:
label
.
contentWidth
+
(
u
nits
.
largeSpacing
*
2
)
height
:
label
.
contentHeight
+
(
u
nits
.
smallSpacing
*
2
)
width
:
label
.
contentWidth
+
(
PlasmaCore
.
U
nits
.
largeSpacing
*
2
)
height
:
label
.
contentHeight
+
(
PlasmaCore
.
U
nits
.
smallSpacing
*
2
)
property
int
index
:
0
property
bool
active
:
false
...
...
@@ -40,18 +41,18 @@ Item {
color
:
tab
.
parent
.
focus
?
theme
.
highlightColor
:
"
black
"
opacity
:
tab
.
active
?
0.4
:
0.15
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
u
nits
.
shortDuration
;
velocity
:
0.01
}
}
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
PlasmaCore
.
U
nits
.
shortDuration
;
velocity
:
0.01
}
}
}
PlasmaExtras.Heading
{
id
:
label
x
:
u
nits
.
largeSpacing
x
:
PlasmaCore
.
U
nits
.
largeSpacing
elide
:
Text
.
ElideNone
wrapMode
:
Text
.
NoWrap
opacity
:
tab
.
active
?
1.0
:
0.6
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
u
nits
.
shortDuration
;
velocity
:
0.01
}
}
Behavior
on
opacity
{
SmoothedAnimation
{
duration
:
PlasmaCore
.
U
nits
.
shortDuration
;
velocity
:
0.01
}
}
color
:
tab
.
parent
.
focus
?
theme
.
highlightedTextColor
:
"
white
"
...
...
applets/kicker/package/contents/ui/ItemGridDelegate.qml
View file @
3564a1e0
...
...
@@ -86,7 +86,7 @@ Item {
anchors
{
top
:
icon
.
bottom
topMargin
:
u
nits
.
smallSpacing
topMargin
:
PlasmaCore
.
U
nits
.
smallSpacing
left
:
parent
.
left
leftMargin
:
highlightItemSvg
.
margins
.
left
right
:
parent
.
right
...
...
applets/kicker/package/contents/ui/ItemGridView.qml
View file @
3564a1e0
...
...
@@ -198,7 +198,7 @@ FocusScope {
property
bool
usesPlasmaTheme
:
false
property
int
iconSize
:
u
nits
.
iconSizes
.
huge
property
int
iconSize
:
PlasmaCore
.
U
nits
.
iconSizes
.
huge
property
bool
animating
:
false
property
int
animationDuration
:
itemGrid
.
dropEnabled
?
resetAnimationDurationTimer
.
interval
:
0
...
...
@@ -273,7 +273,7 @@ FocusScope {
bottomMargin
:
parent
.
margins
.
bottom
}
width
:
u
nits
.
iconSizes
.
smallMedium
width
:
PlasmaCore
.
U
nits
.
iconSizes
.
smallMedium
height
:
width
source
:
"
list-add
"
...
...
applets/kicker/package/contents/ui/ItemListDelegate.qml
View file @
3564a1e0
...
...
@@ -188,7 +188,7 @@ Item {
height
:
parent
.
height
spacing
:
u
nits
.
smallSpacing
*
2
spacing
:
PlasmaCore
.
U
nits
.
smallSpacing
*
2
readonly
property
real
actualSpacing
:
((
icon
.
visible
?
1
:
0
)
*
spacing
)
+
((
arrow
.
visible
?
1
:
0
)
*
spacing
)
LayoutMirroring.enabled
:
(
Qt
.
application
.
layoutDirection
==
Qt
.
RightToLeft
)
...
...
@@ -198,7 +198,7 @@ Item {
anchors.verticalCenter
:
parent
.
verticalCenter
width
:
visible
?
u
nits
.
iconSizes
.
small
:
0
width
:
visible
?
PlasmaCore
.
U
nits
.
iconSizes
.
small
:
0
height
:
width
visible
:
iconsEnabled
...
...
@@ -232,7 +232,7 @@ Item {
anchors.verticalCenter
:
parent
.
verticalCenter
width
:
visible
?
u
nits
.
iconSizes
.
small
:
0
width
:
visible
?
PlasmaCore
.
U
nits
.
iconSizes
.
small
:
0
height
:
width
visible
:
item
.
hasChildren
...
...
applets/kicker/package/contents/ui/ItemListDialog.qml
View file @
3564a1e0
...
...
@@ -37,7 +37,7 @@ Kicker.SubMenu {
location
:
PlasmaCore
.
Types
.
Floating
offset
:
u
nits
.
smallSpacing
offset
:
PlasmaCore
.
U
nits
.
smallSpacing
onWindowDeactivated
:
{
if
(
!
aboutToBeDestroyed
)
{
...
...
applets/kicker/package/contents/ui/ItemListView.qml
View file @
3564a1e0
...
...
@@ -27,7 +27,7 @@ import org.kde.kquickcontrolsaddons 2.0
FocusScope
{
id
:
itemList
property
real
minimumWidth
:
u
nits
.
gridUnit
*
14
property
real
minimumWidth
:
PlasmaCore
.
U
nits
.
gridUnit
*
14
property
real
maximumWidth
:
minimumWidth
*
2
width
:
minimumWidth
...
...
@@ -41,10 +41,10 @@ FocusScope {
property
QtObject
dialog
:
null
property
QtObject
childDialog
:
null
property
bool
iconsEnabled
:
false
property
int
itemHeight
:
Math
.
ceil
((
Math
.
max
(
theme
.
mSize
(
theme
.
defaultFont
).
height
,
u
nits
.
iconSizes
.
small
)
property
int
itemHeight
:
Math
.
ceil
((
Math
.
max
(
theme
.
mSize
(
theme
.
defaultFont
).
height
,
PlasmaCore
.
U
nits
.
iconSizes
.
small
)
+
Math
.
max
(
highlightItemSvg
.
margins
.
top
+
highlightItemSvg
.
margins
.
bottom
,
listItemSvg
.
margins
.
top
+
listItemSvg
.
margins
.
bottom
))
/
2
)
*
2
property
int
separatorHeight
:
lineSvg
.
horLineHeight
+
(
2
*
u
nits
.
smallSpacing
)
property
int
separatorHeight
:
lineSvg
.
horLineHeight
+
(
2
*
PlasmaCore
.
U
nits
.
smallSpacing
)
property
alias
currentIndex
:
listView
.
currentIndex
property
alias
currentItem
:
listView
.
currentItem
...
...
applets/kicker/package/contents/ui/ItemMultiGridView.qml
View file @
3564a1e0
...
...
@@ -87,17 +87,17 @@ PlasmaExtras.ScrollArea {
Column
{
id
:
itemColumn
width
:
itemMultiGrid
.
width
-
u
nits
.
gridUnit
width
:
itemMultiGrid
.
width
-
PlasmaCore
.
U
nits
.
gridUnit
Repeater
{
id
:
repeater
delegate
:
Item
{
width
:
itemColumn
.
width
-
u
nits
.
gridUnit
width
:
itemColumn
.
width
-
PlasmaCore
.
U
nits
.
gridUnit
height
:
headerHeight
+
gridView
.
height
+
(
index
==
repeater
.
count
-
1
?
0
:
footerHeight
)
property
int
headerHeight
:
(
gridViewLabel
.
height
+
gridViewLabelUnderline
.
height
+
u
nits
.
largeSpacing
)
+
gridViewLabelUnderline
.
height
+
PlasmaCore
.
U
nits
.
largeSpacing
)
property
int
footerHeight
:
(
Math
.
ceil
(
headerHeight
/
cellSize
)
*
cellSize
)
-
headerHeight
property
Item
itemGrid
:
gridView
...
...
@@ -107,7 +107,7 @@ PlasmaExtras.ScrollArea {
anchors.top
:
parent
.
top
x
:
u
nits
.
smallSpacing
x
:
PlasmaCore
.
U
nits
.
smallSpacing
width
:
parent
.
width
-
x
height
:
dummyHeading
.
height
...
...
@@ -127,7 +127,7 @@ PlasmaExtras.ScrollArea {
anchors.top
:
gridViewLabel
.
bottom
width
:
parent
.
width
-
u
nits
.
gridUnit
width
:
parent
.
width
-
PlasmaCore
.
U
nits
.
gridUnit
height
:
lineSvg
.
horLineHeight
svg
:
lineSvg
...
...
@@ -146,7 +146,7 @@ PlasmaExtras.ScrollArea {
anchors
{
top
:
gridViewLabelUnderline
.
bottom
topMargin
:
u
nits
.
largeSpacing
topMargin
:
PlasmaCore
.
U
nits
.
largeSpacing
}
width
:
parent
.
width
...
...
applets/kicker/package/contents/ui/MenuRepresentation.qml
View file @
3564a1e0
...
...
@@ -33,9 +33,9 @@ FocusScope {
Layout.minimumHeight
:
Math
.
max
(((
rootModel
.
count
-
rootModel
.
separatorCount
)
*
rootList
.
itemHeight
)
+
(
rootModel
.
separatorCount
*
rootList
.
separatorHeight
)
+
searchField
.
height
+
(
2
*
u
nits
.
smallSpacing
),
sideBar
.
margins
.
top
+
sideBar
.
margins
.
bottom
+
searchField
.
height
+
(
2
*
PlasmaCore
.
U
nits
.
smallSpacing
),
sideBar
.
margins
.
top
+
sideBar
.
margins
.
bottom
+
favoriteApps
.
contentHeight
+
favoriteSystemActions
.
contentHeight
+
sidebarSeparator
.
height
+
(
4
*
u
nits
.
smallSpacing
))
+
(
4
*
PlasmaCore
.
U
nits
.
smallSpacing
))
Layout.maximumHeight
:
Layout
.
minimumHeight
signal
appendSearchText
(
string
text
)
...
...
@@ -54,7 +54,7 @@ FocusScope {
height
:
parent
.
height
spacing
:
u
nits
.
smallSpacing
spacing
:
PlasmaCore
.
U
nits
.
smallSpacing
LayoutMirroring.enabled
:
((
plasmoid
.
location
===
PlasmaCore
.
Types
.
RightEdge
)
||
(
Qt
.
application
.
layoutDirection
==
Qt
.
RightToLeft
&&
plasmoid
.
location
!==
PlasmaCore
.
Types
.
LeftEdge
))
...
...
@@ -66,7 +66,7 @@ FocusScope {
width
:
(
globalFavorites
&&
systemFavorites
&&
(
globalFavorites
.
count
+
systemFavorites
.
count
)
?
u
nits
.
iconSizes
.
medium
+
margins
.
left
+
margins
.
right
:
0
)
?
PlasmaCore
.
U
nits
.
iconSizes
.
medium
+
margins
.
left
+
margins
.
right
:
0
)
height
:
parent
.
height
imagePath
:
"
widgets/frame
"
...
...
@@ -79,7 +79,7 @@ FocusScope {
anchors.topMargin
:
sideBar
.
margins
.
top
height
:
(
sideBar
.
height
-
sideBar
.
margins
.
top
-
sideBar
.
margins
.
bottom
-
favoriteSystemActions
.
height
-
sidebarSeparator
.
height
-
(
4
*
u
nits
.
smallSpacing
))
-
favoriteSystemActions
.
height
-
sidebarSeparator
.
height
-
(
4
*
PlasmaCore
.
U
nits
.
smallSpacing
))
model
:
globalFavorites
...
...
@@ -103,7 +103,7 @@ FocusScope {
Binding
{
target
:
globalFavorites
property
:
"
iconSize
"
value
:
u
nits
.
iconSizes
.
medium
value
:
PlasmaCore
.
U
nits
.
iconSizes
.
medium
}
}
...
...
@@ -111,10 +111,10 @@ FocusScope {
id
:
sidebarSeparator
anchors.bottom
:
favoriteSystemActions
.
top
anchors.bottomMargin
:
(
2
*
u
nits
.
smallSpacing
)
anchors.bottomMargin
:
(
2
*
PlasmaCore
.
U
nits
.
smallSpacing
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
width
:
u
nits
.
iconSizes
.
medium
width
:
PlasmaCore
.
U
nits
.
iconSizes
.
medium
height
:
lineSvg
.
horLineHeight
visible
:
(
favoriteApps
.
model
&&
favoriteApps
.
model
.
count
...
...
@@ -136,7 +136,7 @@ FocusScope {
PropertyChanges
{
target
:
sidebarSeparator
anchors.topMargin
:
(
2
*
u
nits
.
smallSpacing
)
anchors.topMargin
:
(
2
*
PlasmaCore
.
U
nits
.
smallSpacing
)
anchors.bottomMargin
:
undefined
}
}]
...
...
@@ -306,12 +306,12 @@ FocusScope {
anchors.bottom
:
mainRow
.
bottom
anchors.left
:
parent
.
left
anchors.leftMargin
:
sideBar
.
width
+
(
sideBar
.
width
?
mainRow
.
spacing
:
0
)
+
u
nits
.
smallSpacing
anchors.leftMargin
:
sideBar
.
width
+
(
sideBar
.
width
?
mainRow
.
spacing
:
0
)
+
PlasmaCore
.
U
nits
.
smallSpacing
readonly
property
real
defaultWidth
:
u
nits
.
gridUnit
*
14
readonly
property
real
defaultWidth
:
PlasmaCore
.
U
nits
.
gridUnit
*
14
width
:
(
runnerColumnsRepeater
.
count
!=
0
?
runnerColumnsRepeater
.
itemAt
(
0
).
width
:
(
rootList
.
visible
?
rootList
.
width
:
defaultWidth
))
-
u
nits
.
smallSpacing
-
PlasmaCore
.
U
nits
.
smallSpacing
focus
:
true
...
...
@@ -349,7 +349,7 @@ FocusScope {
PropertyChanges
{
target
:
searchField
anchors.leftMargin
:
sideBar
.
width
+
mainRow
.
spacing
+
u
nits
.
smallSpacing
anchors.leftMargin
:
sideBar
.
width
+
mainRow
.
spacing
+
PlasmaCore
.
U
nits
.
smallSpacing
anchors.rightMargin
:
undefined
}
},
...
...
@@ -369,7 +369,7 @@ FocusScope {
PropertyChanges
{
target
:
searchField
anchors.leftMargin
:
undefined
anchors.rightMargin
:
sideBar
.
width
+
mainRow
.
spacing
+
u
nits
.
smallSpacing
anchors.rightMargin
:
sideBar
.
width
+
mainRow
.
spacing
+
PlasmaCore
.
U
nits
.
smallSpacing
}
}]
...
...
applets/kicker/package/contents/ui/RunnerResultsList.qml
View file @
3564a1e0
...
...
@@ -40,7 +40,7 @@ FocusScope {
id
:
vertLine
anchors.left
:
parent
.
left
anchors.leftMargin
:
(
index
>
0
)
?
u
nits
.
smallSpacing
:
0
anchors.leftMargin
:
(
index
>
0
)
?
PlasmaCore
.
U
nits
.
smallSpacing
:
0
width
:
(
index
>
0
)
?
lineSvg
.
vertLineWidth
:
0
height
:
parent
.
height
...
...
@@ -57,7 +57,7 @@ FocusScope {
anchors.left
:
vertLine
.
right
width
:
runnerMatches
.
width
height
:
runnerMatches
.
itemHeight
+
u
nits
.
smallSpacing
height
:
runnerMatches
.
itemHeight
+
PlasmaCore
.
U
nits
.
smallSpacing
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVTop
...
...
@@ -75,9 +75,9 @@ FocusScope {