mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Test case for improper scaling of Rectangles when below Layout
This commit is contained in:
@@ -33,6 +33,13 @@ NLoader {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A basic rectangle, which scale ok because out of layout
|
||||||
|
Rectangle {
|
||||||
|
width: Style.baseWidgetSize * scaling
|
||||||
|
height: Style.baseWidgetSize * scaling
|
||||||
|
color: Colors.accentTertiary
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Style.marginXL * scaling
|
anchors.margins: Style.marginXL * scaling
|
||||||
@@ -156,13 +163,19 @@ NLoader {
|
|||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
|
|
||||||
NBusyIndicator {
|
NBusyIndicator {}
|
||||||
}
|
|
||||||
|
|
||||||
NDivider {
|
NDivider {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A basic rectangle, which does not scale right?!
|
||||||
|
Rectangle {
|
||||||
|
width: Style.baseWidgetSize * scaling
|
||||||
|
height: Style.baseWidgetSize * scaling
|
||||||
|
color: Colors.accentPrimary
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ ComboBox {
|
|||||||
id: root
|
id: root
|
||||||
|
|
||||||
readonly property real scaling: Scaling.scale(screen)
|
readonly property real scaling: Scaling.scale(screen)
|
||||||
|
|
||||||
property list<string> optionsKeys: []
|
property list<string> optionsKeys: []
|
||||||
property list<string> optionsLabels: []
|
property list<string> optionsLabels: []
|
||||||
property string currentKey: ''
|
property string currentKey: ''
|
||||||
|
|||||||
Reference in New Issue
Block a user