mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
fix bar radius
This commit is contained in:
@@ -7,11 +7,7 @@ Item {
|
|||||||
required property var barWindow
|
required property var barWindow
|
||||||
required property var axis
|
required property var axis
|
||||||
|
|
||||||
readonly property real correctWidth: barWindow.isVertical ? barWindow.implicitWidth : parent.width
|
anchors.fill: parent
|
||||||
readonly property real correctHeight: barWindow.isVertical ? parent.height : barWindow.implicitHeight
|
|
||||||
|
|
||||||
width: correctWidth
|
|
||||||
height: correctHeight
|
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
@@ -27,8 +23,8 @@ Item {
|
|||||||
renderTarget: Canvas.FramebufferObject
|
renderTarget: Canvas.FramebufferObject
|
||||||
renderStrategy: Canvas.Cooperative
|
renderStrategy: Canvas.Cooperative
|
||||||
|
|
||||||
readonly property real correctWidth: barWindow.isVertical ? barWindow.implicitWidth : parent.width
|
readonly property real correctWidth: root.width
|
||||||
readonly property real correctHeight: barWindow.isVertical ? parent.height : barWindow.implicitHeight
|
readonly property real correctHeight: root.height
|
||||||
canvasSize: Qt.size(barWindow.px(correctWidth), barWindow.px(correctHeight))
|
canvasSize: Qt.size(barWindow.px(correctWidth), barWindow.px(correctHeight))
|
||||||
|
|
||||||
property real wing: SettingsData.dankBarGothCornersEnabled ? barWindow._wingR : 0
|
property real wing: SettingsData.dankBarGothCornersEnabled ? barWindow._wingR : 0
|
||||||
@@ -122,8 +118,8 @@ Item {
|
|||||||
renderTarget: Canvas.FramebufferObject
|
renderTarget: Canvas.FramebufferObject
|
||||||
renderStrategy: Canvas.Cooperative
|
renderStrategy: Canvas.Cooperative
|
||||||
|
|
||||||
readonly property real correctWidth: barWindow.isVertical ? barWindow.implicitWidth : parent.width
|
readonly property real correctWidth: root.width
|
||||||
readonly property real correctHeight: barWindow.isVertical ? parent.height : barWindow.implicitHeight
|
readonly property real correctHeight: root.height
|
||||||
canvasSize: Qt.size(barWindow.px(correctWidth), barWindow.px(correctHeight))
|
canvasSize: Qt.size(barWindow.px(correctWidth), barWindow.px(correctHeight))
|
||||||
|
|
||||||
property real wing: SettingsData.dankBarGothCornersEnabled ? barWindow._wingR : 0
|
property real wing: SettingsData.dankBarGothCornersEnabled ? barWindow._wingR : 0
|
||||||
|
|||||||
Reference in New Issue
Block a user