ScreenCorners: add solid black option
This commit is contained in:
parent
22bc5a3bff
commit
8cb9f04a22
3 changed files with 9 additions and 1 deletions
|
|
@ -322,6 +322,7 @@ Singleton {
|
||||||
property string avatarImage: defaultAvatar
|
property string avatarImage: defaultAvatar
|
||||||
property bool dimDesktop: false
|
property bool dimDesktop: false
|
||||||
property bool showScreenCorners: false
|
property bool showScreenCorners: false
|
||||||
|
property bool forceBlackScreenCorners: false
|
||||||
property real radiusRatio: 1.0
|
property real radiusRatio: 1.0
|
||||||
property real screenRadiusRatio: 1.0
|
property real screenRadiusRatio: 1.0
|
||||||
// Animation speed multiplier (0.1x - 2.0x)
|
// Animation speed multiplier (0.1x - 2.0x)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ Loader {
|
||||||
property real scaling: ScalingService.getScreenScale(screen)
|
property real scaling: ScalingService.getScreenScale(screen)
|
||||||
screen: modelData
|
screen: modelData
|
||||||
|
|
||||||
property color cornerColor: Qt.alpha(Color.mSurface, Settings.data.bar.backgroundOpacity)
|
property color cornerColor: Settings.data.general.forceBlackScreenCorners ? Qt.rgba(0, 0, 0, 1) : Qt.alpha(Color.mSurface, Settings.data.bar.backgroundOpacity)
|
||||||
property real cornerRadius: Style.screenRadius * scaling
|
property real cornerRadius: Style.screenRadius * scaling
|
||||||
property real cornerSize: Style.screenRadius * scaling
|
property real cornerSize: Style.screenRadius * scaling
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -129,6 +129,13 @@ ColumnLayout {
|
||||||
onToggled: checked => Settings.data.general.showScreenCorners = checked
|
onToggled: checked => Settings.data.general.showScreenCorners = checked
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NToggle {
|
||||||
|
label: "Solid Black Corners"
|
||||||
|
description: "Force screen corners to always render as solid black."
|
||||||
|
checked: Settings.data.general.forceBlackScreenCorners
|
||||||
|
onToggled: checked => Settings.data.general.forceBlackScreenCorners = checked
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: Style.marginXXS * scaling
|
spacing: Style.marginXXS * scaling
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue