BarHeight: more rounding uniformization
This commit is contained in:
parent
fdf67ab512
commit
fcf627c30b
5 changed files with 6 additions and 6 deletions
|
|
@ -104,7 +104,7 @@ Rectangle {
|
||||||
|
|
||||||
// Anchor the menu to the tray icon item (parent) and position it below the icon
|
// Anchor the menu to the tray icon item (parent) and position it below the icon
|
||||||
const menuX = (width / 2) - (trayMenu.item.width / 2)
|
const menuX = (width / 2) - (trayMenu.item.width / 2)
|
||||||
const menuY = (Style.barHeight * scaling)
|
const menuY = Math.round(Style.barHeight * scaling)
|
||||||
trayMenu.item.menu = modelData.menu
|
trayMenu.item.menu = modelData.menu
|
||||||
trayMenu.item.showAt(parent, menuX, menuY)
|
trayMenu.item.showAt(parent, menuX, menuY)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@ NPanel {
|
||||||
// Search bar
|
// Search bar
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Math.round(Style.barHeight * scaling)
|
||||||
Layout.bottomMargin: Style.marginM * scaling
|
Layout.bottomMargin: Style.marginM * scaling
|
||||||
radius: Style.radiusM * scaling
|
radius: Style.radiusM * scaling
|
||||||
color: Color.mSurface
|
color: Color.mSurface
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ ColumnLayout {
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
Layout.topMargin: Style.marginS * scaling
|
Layout.topMargin: Style.marginS * scaling
|
||||||
Layout.preferredWidth: updateText.implicitWidth + 46 * scaling
|
Layout.preferredWidth: updateText.implicitWidth + 46 * scaling
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Math.round(Style.barHeight * scaling)
|
||||||
radius: Style.radiusL * scaling
|
radius: Style.radiusL * scaling
|
||||||
color: updateArea.containsMouse ? Color.mPrimary : Color.transparent
|
color: updateArea.containsMouse ? Color.mPrimary : Color.transparent
|
||||||
border.color: Color.mPrimary
|
border.color: Color.mPrimary
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ NPanel {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Math.round(Style.barHeight * scaling)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
@ -313,7 +313,7 @@ NPanel {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.preferredWidth: Style.baseWidgetSize * 2.5 * scaling
|
Layout.preferredWidth: Style.baseWidgetSize * 2.5 * scaling
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Math.round(Style.barHeight * scaling)
|
||||||
radius: Style.radiusM * scaling
|
radius: Style.radiusM * scaling
|
||||||
color: Color.mPrimary
|
color: Color.mPrimary
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ Loader {
|
||||||
property real opacityValue: originalOpacity
|
property real opacityValue: originalOpacity
|
||||||
|
|
||||||
property alias isClosing: hideTimer.running
|
property alias isClosing: hideTimer.running
|
||||||
readonly property real barHeight: Style.barHeight * scaling
|
readonly property real barHeight: Math.round(Style.barHeight * scaling)
|
||||||
readonly property bool barAtBottom: Settings.data.bar.position === "bottom"
|
readonly property bool barAtBottom: Settings.data.bar.position === "bottom"
|
||||||
|
|
||||||
signal opened
|
signal opened
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue