forked from Shinonome/dots-hyprland
settings: add fake screen rounding option
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
import QtQuick
|
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import "root:/services/"
|
|
||||||
import "root:/modules/common/"
|
|
||||||
import "root:/modules/common/widgets/"
|
|
||||||
|
|
||||||
ContentPage {
|
|
||||||
StyledText {
|
|
||||||
text: qsTr("Services page")
|
|
||||||
font.pixelSize: Appearance.font.pixelSize.larger
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -96,5 +96,48 @@ ContentPage {
|
|||||||
font.pixelSize: Appearance.font.pixelSize.smaller
|
font.pixelSize: Appearance.font.pixelSize.smaller
|
||||||
color: Appearance.colors.colSubtext
|
color: Appearance.colors.colSubtext
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ContentSection {
|
||||||
|
title: "Shell style"
|
||||||
|
|
||||||
|
ColumnLayout { // Fake screen rounding
|
||||||
|
StyledText {
|
||||||
|
text: "Fake screen rounding"
|
||||||
|
color: Appearance.colors.colSubtext
|
||||||
|
}
|
||||||
|
ButtonGroup {
|
||||||
|
id: fakeScreenRoundingButtonGroup
|
||||||
|
property int selectedPolicy: ConfigOptions.appearance.fakeScreenRounding
|
||||||
|
spacing: 2
|
||||||
|
SelectionGroupButton {
|
||||||
|
property int value: 0
|
||||||
|
leftmost: true
|
||||||
|
buttonText: "No"
|
||||||
|
toggled: (fakeScreenRoundingButtonGroup.selectedPolicy === value)
|
||||||
|
onClicked: {
|
||||||
|
ConfigLoader.setConfigValueAndSave("appearance.fakeScreenRounding", value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
SelectionGroupButton {
|
||||||
|
property int value: 1
|
||||||
|
buttonText: "Yes"
|
||||||
|
toggled: (fakeScreenRoundingButtonGroup.selectedPolicy === value)
|
||||||
|
onClicked: {
|
||||||
|
ConfigLoader.setConfigValueAndSave("appearance.fakeScreenRounding", value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
SelectionGroupButton {
|
||||||
|
property int value: 2
|
||||||
|
rightmost: true
|
||||||
|
buttonText: "When not fullscreen"
|
||||||
|
toggled: (fakeScreenRoundingButtonGroup.selectedPolicy === value)
|
||||||
|
onClicked: {
|
||||||
|
ConfigLoader.setConfigValueAndSave("appearance.fakeScreenRounding", value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -27,20 +27,15 @@ ApplicationWindow {
|
|||||||
property real contentPadding: 8
|
property real contentPadding: 8
|
||||||
property bool showNextTime: false
|
property bool showNextTime: false
|
||||||
property var pages: [
|
property var pages: [
|
||||||
{
|
|
||||||
name: "General",
|
|
||||||
icon: "tune",
|
|
||||||
component: "modules/settings/General.qml"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "Style",
|
name: "Style",
|
||||||
icon: "palette",
|
icon: "palette",
|
||||||
component: "modules/settings/Style.qml"
|
component: "modules/settings/Style.qml"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Services",
|
name: "Behavior",
|
||||||
icon: "settings",
|
icon: "settings",
|
||||||
component: "modules/settings/Services.qml"
|
component: "modules/settings/BehaviorConfig.qml"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "About",
|
name: "About",
|
||||||
|
|||||||
Reference in New Issue
Block a user