@@ -551,6 +551,7 @@ ColumnLayout {
551551 property int scheme_variant: 5; \
552552 property real chroma_multiplier: 1.0; \
553553 property real tone_multiplier: 1.0; \
554+ property real frame_contrast: 1.0; \
554555 }' ;
555556
556557 settings = Qt .createQmlObject (settingsString, mainLayout, " settingsObject" );
@@ -1354,7 +1355,6 @@ ColumnLayout {
13541355 }
13551356 }
13561357
1357-
13581358 PlasmaComponents3 .ToolButton {
13591359 Layout .alignment : Qt .AlignHCenter
13601360 text: fullRepresentation .showAdvanced ? " Hide advanced settings" : " Show advanced settings"
@@ -1869,13 +1869,6 @@ ColumnLayout {
18691869 opacity: dividerOpacity
18701870 }
18711871
1872- Rectangle {
1873- Layout .preferredWidth : mainLayout .width
1874- height: 1
1875- color: dividerColor
1876- opacity: dividerOpacity
1877- }
1878-
18791872 PlasmaExtras .Heading {
18801873 level: 1
18811874 text: " Delay & screenshot options"
@@ -2082,6 +2075,69 @@ ColumnLayout {
20822075 }
20832076 }
20842077
2078+ Rectangle {
2079+ Layout .topMargin : Kirigami .Units .mediumSpacing
2080+ Layout .preferredWidth : mainLayout .width
2081+ height: 1
2082+ color: dividerColor
2083+ opacity: dividerOpacity
2084+ visible: fullRepresentation .showAdvanced
2085+ }
2086+
2087+ PlasmaExtras .Heading {
2088+ level: 1
2089+ text: " Frames and outlines"
2090+ Layout .alignment : Qt .AlignHCenter
2091+ visible: fullRepresentation .showAdvanced
2092+ }
2093+
2094+ // Outline contrast
2095+ RowLayout {
2096+ visible: fullRepresentation .showAdvanced
2097+ PlasmaComponents3 .Label {
2098+ text: " Contrast"
2099+ Layout .alignment : Qt .AlignLeft
2100+ }
2101+
2102+ PlasmaComponents3 .Slider {
2103+ value: settings .frame_contrast
2104+ from: 0.0
2105+ to: 1
2106+ Layout .fillWidth : true
2107+ onValueChanged: {
2108+ settings .frame_contrast = value .toFixed (2 )
2109+ }
2110+ }
2111+
2112+ PlasmaComponents3 .TextField {
2113+ Layout .preferredWidth : controlWidth
2114+ placeholderText: " 0-4"
2115+ horizontalAlignment: TextInput .AlignHCenter
2116+ text: parseFloat (settings .frame_contrast )
2117+
2118+ validator: DoubleValidator {
2119+ bottom: 0
2120+ top: 1
2121+ decimals: 2
2122+ notation: DoubleValidator .StandardNotation
2123+ }
2124+
2125+ onAccepted: {
2126+ settings .frame_contrast = parseFloat (text)
2127+ }
2128+ }
2129+ }
2130+
2131+ PlasmaComponents3 .Label {
2132+ text: " Values below 15% may produce visually awkward effects with some applications and color schemes."
2133+ Layout .fillWidth : true
2134+ color: Kirigami .Theme .neutralTextColor
2135+ wrapMode: PlasmaComponents3 .Label .WordWrap
2136+ font: Kirigami .Theme .smallFont
2137+ visible: fullRepresentation .showAdvanced && settings .frame_contrast < 0.15
2138+ }
2139+
2140+
20852141 Rectangle {
20862142 Layout .topMargin : Kirigami .Units .mediumSpacing
20872143 Layout .preferredWidth : mainLayout .width
0 commit comments