mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-01 18:15:41 +00:00
Replace some hardcoded spacing by their respective shorthands
This commit is contained in:
@@ -32,8 +32,8 @@ Item {
|
||||
IconImage {
|
||||
id: trayIcon
|
||||
anchors.centerIn: parent
|
||||
width: 16 * scaling
|
||||
height: 16 * scaling
|
||||
width: Style.marginLarge * scaling
|
||||
height: Style.marginLarge * scaling
|
||||
smooth: false
|
||||
asynchronous: true
|
||||
backer.fillMode: Image.PreserveAspectFit
|
||||
|
||||
@@ -134,8 +134,8 @@ PopupWindow {
|
||||
}
|
||||
|
||||
Image {
|
||||
Layout.preferredWidth: 16 * scaling
|
||||
Layout.preferredHeight: 16 * scaling
|
||||
Layout.preferredWidth: Style.marginLarge * scaling
|
||||
Layout.preferredHeight: Style.marginLarge * scaling
|
||||
source: modelData?.icon ?? ""
|
||||
visible: (modelData?.icon ?? "") !== ""
|
||||
fillMode: Image.PreserveAspectFit
|
||||
@@ -369,8 +369,8 @@ PopupWindow {
|
||||
}
|
||||
|
||||
Image {
|
||||
Layout.preferredWidth: 16 * scaling
|
||||
Layout.preferredHeight: 16 * scaling
|
||||
Layout.preferredWidth: Style.marginLarge * scaling
|
||||
Layout.preferredHeight: Style.marginLarge * scaling
|
||||
source: modelData?.icon ?? ""
|
||||
visible: (modelData?.icon ?? "") !== ""
|
||||
fillMode: Image.PreserveAspectFit
|
||||
|
||||
@@ -127,7 +127,7 @@ NLoader {
|
||||
|
||||
// NSlider
|
||||
ColumnLayout {
|
||||
spacing: 16 * scaling
|
||||
spacing: Style.marginLarge * scaling
|
||||
NText {
|
||||
text: "Scaling"
|
||||
color: Colors.accentSecondary
|
||||
@@ -170,7 +170,7 @@ NLoader {
|
||||
|
||||
// NIconButton
|
||||
ColumnLayout {
|
||||
spacing: 16 * scaling
|
||||
spacing: Style.marginLarge * scaling
|
||||
NText {
|
||||
text: "NIconButton"
|
||||
color: Colors.accentSecondary
|
||||
|
||||
@@ -69,7 +69,7 @@ ColumnLayout {
|
||||
font.pointSize: 14 * Scaling.scale(screen)
|
||||
color: Colors.textSecondary
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.bottomMargin: 16 * Scaling.scale(screen)
|
||||
Layout.bottomMargin: Style.marginLarge * scaling.scale(screen)
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
@@ -80,28 +80,28 @@ ColumnLayout {
|
||||
|
||||
NText {
|
||||
text: "Latest Version:"
|
||||
font.pointSize: 16 * Scaling.scale(screen)
|
||||
font.pointSize: Style.marginLarge * scaling.scale(screen)
|
||||
color: Colors.textSecondary
|
||||
Layout.alignment: Qt.AlignRight
|
||||
}
|
||||
|
||||
NText {
|
||||
text: root.latestVersion
|
||||
font.pointSize: 16 * Scaling.scale(screen)
|
||||
font.pointSize: Style.marginLarge * scaling.scale(screen)
|
||||
color: Colors.textPrimary
|
||||
font.weight: Style.fontWeightBold
|
||||
}
|
||||
|
||||
NText {
|
||||
text: "Installed Version:"
|
||||
font.pointSize: 16 * Scaling.scale(screen)
|
||||
font.pointSize: Style.marginLarge * scaling.scale(screen)
|
||||
color: Colors.textSecondary
|
||||
Layout.alignment: Qt.AlignRight
|
||||
}
|
||||
|
||||
NText {
|
||||
text: root.currentVersion
|
||||
font.pointSize: 16 * Scaling.scale(screen)
|
||||
font.pointSize: Style.marginLarge * scaling.scale(screen)
|
||||
color: Colors.textPrimary
|
||||
font.weight: Style.fontWeightBold
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user