homescreen: Improve readability of app delegate text

This commit is contained in:
Devin Lin 2022-04-06 12:04:57 -04:00
parent 2e6c1f837e
commit b7c8c462c5
7 changed files with 27 additions and 22 deletions

View file

@ -144,22 +144,24 @@ 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
elide: Text.ElideRight
text: model.applicationName
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

View file

@ -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

View file

@ -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

View file

@ -30,6 +30,7 @@ PlasmaCore.ColorScope {
color: "white"
level: 1
text: i18n("Applications")
font.weight: Font.Medium
}
Item { Layout.fillWidth: true }
PlasmaComponents.ToolButton {

View file

@ -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"
}
}

View file

@ -99,7 +99,6 @@ MouseArea {
text: model.applicationName
//FIXME: export smallestReadableFont
font.pointSize: Math.round(theme.defaultFont.pointSize * 1.1)
color: "white"
}

View file

@ -103,5 +103,13 @@ MobileShell.HomeScreen {
searchWidget.updateGestureOffset(-offset);
}
}
// listen to app launch errors
Connections {
target: MobileShell.ApplicationListModel
function onLaunchError(msg) {
MobileShell.HomeScreenControls.closeAppLaunchAnimation()
}
}
}