mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-05 11:40:00 +00:00
NSectionEditor: Force text width for a more uniform look
This commit is contained in:
@@ -116,7 +116,7 @@ NBox {
|
|||||||
required property int index
|
required property int index
|
||||||
required property string modelData
|
required property string modelData
|
||||||
|
|
||||||
width: widgetContent.implicitWidth + 16 * scaling
|
width: widgetContent.implicitWidth + Style.marginL * scaling
|
||||||
height: 40 * scaling
|
height: 40 * scaling
|
||||||
radius: Style.radiusL * scaling
|
radius: Style.radiusL * scaling
|
||||||
color: root.getWidgetColor(modelData)
|
color: root.getWidgetColor(modelData)
|
||||||
@@ -145,6 +145,7 @@ NBox {
|
|||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: widgetContent
|
id: widgetContent
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: Style.marginXS * scaling
|
spacing: Style.marginXS * scaling
|
||||||
|
|
||||||
@@ -153,6 +154,8 @@ NBox {
|
|||||||
font.pointSize: Style.fontSizeS * scaling
|
font.pointSize: Style.fontSizeS * scaling
|
||||||
color: Color.mOnPrimary
|
color: Color.mOnPrimary
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
elide: Text.ElideRight
|
||||||
|
Layout.preferredWidth: 80 * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
|
|||||||
Reference in New Issue
Block a user