mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
homescreen: Improve readability of app delegate text
This commit is contained in:
parent
2e6c1f837e
commit
b7c8c462c5
7 changed files with 27 additions and 22 deletions
|
|
@ -144,22 +144,24 @@ ContainmentLayoutManager.ItemContainer {
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: delegate.reservedSpaceForLabel
|
Layout.preferredHeight: delegate.reservedSpaceForLabel
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
Layout.leftMargin: -parent.anchors.leftMargin + PlasmaCore.Units.smallSpacing
|
Layout.topMargin: PlasmaCore.Units.smallSpacing
|
||||||
Layout.rightMargin: -parent.anchors.rightMargin + PlasmaCore.Units.smallSpacing
|
Layout.leftMargin: -parent.anchors.leftMargin + PlasmaCore.Units.smallSpacing * 2
|
||||||
|
Layout.rightMargin: -parent.anchors.rightMargin + PlasmaCore.Units.smallSpacing * 2
|
||||||
|
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignTop
|
verticalAlignment: Text.AlignTop
|
||||||
maximumLineCount: 2
|
maximumLineCount: 2
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
||||||
text: model.applicationName
|
text: model.applicationName
|
||||||
|
|
||||||
//FIXME: export smallestReadableFont
|
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.8
|
||||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.9
|
font.weight: Font.Bold
|
||||||
color: "white"//model.applicationLocation == MobileShell.ApplicationListModel.Desktop ? "white" : PlasmaCore.Theme.textColor
|
color: "white"
|
||||||
|
|
||||||
layer.enabled: true//model.applicationLocation == MobileShell.ApplicationListModel.Desktop
|
layer.enabled: true
|
||||||
layer.effect: DropShadow {
|
layer.effect: DropShadow {
|
||||||
horizontalOffset: 0
|
horizontalOffset: 0
|
||||||
verticalOffset: 2
|
verticalOffset: 2
|
||||||
|
|
|
||||||
|
|
@ -64,14 +64,6 @@ Item {
|
||||||
width: flickContainer.width
|
width: flickContainer.width
|
||||||
height: flickContainer.height
|
height: flickContainer.height
|
||||||
|
|
||||||
// listen to app launch errors
|
|
||||||
Connections {
|
|
||||||
target: MobileShell.ApplicationListModel
|
|
||||||
function onLaunchError(msg) {
|
|
||||||
MobileShell.HomeScreenControls.closeAppLaunchAnimation()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// horizontal pages
|
// horizontal pages
|
||||||
HomeScreenPages {
|
HomeScreenPages {
|
||||||
id: pages
|
id: pages
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,8 @@ Item {
|
||||||
id: metrics
|
id: metrics
|
||||||
text: "M\nM"
|
text: "M\nM"
|
||||||
visible: false
|
visible: false
|
||||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.9
|
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.8
|
||||||
|
font.weight: Font.Bold
|
||||||
}
|
}
|
||||||
|
|
||||||
// bottom divider
|
// bottom divider
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ PlasmaCore.ColorScope {
|
||||||
color: "white"
|
color: "white"
|
||||||
level: 1
|
level: 1
|
||||||
text: i18n("Applications")
|
text: i18n("Applications")
|
||||||
|
font.weight: Font.Medium
|
||||||
}
|
}
|
||||||
Item { Layout.fillWidth: true }
|
Item { Layout.fillWidth: true }
|
||||||
PlasmaComponents.ToolButton {
|
PlasmaComponents.ToolButton {
|
||||||
|
|
|
||||||
|
|
@ -85,9 +85,11 @@ MouseArea {
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: delegate.reservedSpaceForLabel
|
Layout.preferredHeight: delegate.reservedSpaceForLabel
|
||||||
|
Layout.topMargin: PlasmaCore.Units.smallSpacing
|
||||||
|
Layout.leftMargin: -parent.anchors.leftMargin + PlasmaCore.Units.smallSpacing * 2
|
||||||
|
Layout.rightMargin: -parent.anchors.rightMargin + PlasmaCore.Units.smallSpacing * 2
|
||||||
|
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.leftMargin: -parent.anchors.leftMargin + PlasmaCore.Units.smallSpacing
|
|
||||||
Layout.rightMargin: -parent.anchors.rightMargin + PlasmaCore.Units.smallSpacing
|
|
||||||
maximumLineCount: 2
|
maximumLineCount: 2
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignTop
|
verticalAlignment: Text.AlignTop
|
||||||
|
|
@ -95,8 +97,8 @@ MouseArea {
|
||||||
|
|
||||||
text: model.applicationName
|
text: model.applicationName
|
||||||
|
|
||||||
//FIXME: export smallestReadableFont
|
font.pointSize: theme.defaultFont.pointSize * 0.8
|
||||||
font.pointSize: theme.defaultFont.pointSize * 0.9
|
font.weight: Font.Bold
|
||||||
color: "white"
|
color: "white"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,6 @@ MouseArea {
|
||||||
|
|
||||||
text: model.applicationName
|
text: model.applicationName
|
||||||
|
|
||||||
//FIXME: export smallestReadableFont
|
|
||||||
font.pointSize: Math.round(theme.defaultFont.pointSize * 1.1)
|
font.pointSize: Math.round(theme.defaultFont.pointSize * 1.1)
|
||||||
color: "white"
|
color: "white"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,5 +103,13 @@ MobileShell.HomeScreen {
|
||||||
searchWidget.updateGestureOffset(-offset);
|
searchWidget.updateGestureOffset(-offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// listen to app launch errors
|
||||||
|
Connections {
|
||||||
|
target: MobileShell.ApplicationListModel
|
||||||
|
function onLaunchError(msg) {
|
||||||
|
MobileShell.HomeScreenControls.closeAppLaunchAnimation()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue