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,10 +144,12 @@ ContainmentLayoutManager.ItemContainer {
|
|||
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: delegate.reservedSpaceForLabel
|
||||
wrapMode: Text.WordWrap
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.leftMargin: -parent.anchors.leftMargin + PlasmaCore.Units.smallSpacing
|
||||
Layout.rightMargin: -parent.anchors.rightMargin + PlasmaCore.Units.smallSpacing
|
||||
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
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignTop
|
||||
maximumLineCount: 2
|
||||
|
|
@ -155,11 +157,11 @@ ContainmentLayoutManager.ItemContainer {
|
|||
|
||||
text: model.applicationName
|
||||
|
||||
//FIXME: export smallestReadableFont
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.9
|
||||
color: "white"//model.applicationLocation == MobileShell.ApplicationListModel.Desktop ? "white" : PlasmaCore.Theme.textColor
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.8
|
||||
font.weight: Font.Bold
|
||||
color: "white"
|
||||
|
||||
layer.enabled: true//model.applicationLocation == MobileShell.ApplicationListModel.Desktop
|
||||
layer.enabled: true
|
||||
layer.effect: DropShadow {
|
||||
horizontalOffset: 0
|
||||
verticalOffset: 2
|
||||
|
|
|
|||
|
|
@ -64,14 +64,6 @@ Item {
|
|||
width: flickContainer.width
|
||||
height: flickContainer.height
|
||||
|
||||
// listen to app launch errors
|
||||
Connections {
|
||||
target: MobileShell.ApplicationListModel
|
||||
function onLaunchError(msg) {
|
||||
MobileShell.HomeScreenControls.closeAppLaunchAnimation()
|
||||
}
|
||||
}
|
||||
|
||||
// horizontal pages
|
||||
HomeScreenPages {
|
||||
id: pages
|
||||
|
|
|
|||
|
|
@ -64,7 +64,8 @@ Item {
|
|||
id: metrics
|
||||
text: "M\nM"
|
||||
visible: false
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.9
|
||||
font.pointSize: PlasmaCore.Theme.defaultFont.pointSize * 0.8
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
|
||||
// bottom divider
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ PlasmaCore.ColorScope {
|
|||
color: "white"
|
||||
level: 1
|
||||
text: i18n("Applications")
|
||||
font.weight: Font.Medium
|
||||
}
|
||||
Item { Layout.fillWidth: true }
|
||||
PlasmaComponents.ToolButton {
|
||||
|
|
|
|||
|
|
@ -85,9 +85,11 @@ MouseArea {
|
|||
|
||||
Layout.fillWidth: true
|
||||
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
|
||||
Layout.leftMargin: -parent.anchors.leftMargin + PlasmaCore.Units.smallSpacing
|
||||
Layout.rightMargin: -parent.anchors.rightMargin + PlasmaCore.Units.smallSpacing
|
||||
maximumLineCount: 2
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignTop
|
||||
|
|
@ -95,8 +97,8 @@ MouseArea {
|
|||
|
||||
text: model.applicationName
|
||||
|
||||
//FIXME: export smallestReadableFont
|
||||
font.pointSize: theme.defaultFont.pointSize * 0.9
|
||||
font.pointSize: theme.defaultFont.pointSize * 0.8
|
||||
font.weight: Font.Bold
|
||||
color: "white"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,7 +99,6 @@ MouseArea {
|
|||
|
||||
text: model.applicationName
|
||||
|
||||
//FIXME: export smallestReadableFont
|
||||
font.pointSize: Math.round(theme.defaultFont.pointSize * 1.1)
|
||||
color: "white"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,5 +103,13 @@ MobileShell.HomeScreen {
|
|||
searchWidget.updateGestureOffset(-offset);
|
||||
}
|
||||
}
|
||||
|
||||
// listen to app launch errors
|
||||
Connections {
|
||||
target: MobileShell.ApplicationListModel
|
||||
function onLaunchError(msg) {
|
||||
MobileShell.HomeScreenControls.closeAppLaunchAnimation()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue