respect new arguments
This commit is contained in:
+4
-5
@@ -300,11 +300,10 @@ Singleton {
|
|||||||
return {
|
return {
|
||||||
enable_pp: screenshot.enable_pp,
|
enable_pp: screenshot.enable_pp,
|
||||||
mode: screenshot.mode,
|
mode: screenshot.mode,
|
||||||
corner_radius: screenshot.corner_radius,
|
radius: screenshot.radius,
|
||||||
drop_shadow: screenshot.drop_shadow,
|
shadow: screenshot.shadow,
|
||||||
rounded_corners: screenshot.rounded_corners,
|
rounding: screenshot.rounding,
|
||||||
shadow_blur_radius: screenshot.shadow_blur_radius,
|
shadow_blur: screenshot.shadow_blur,
|
||||||
shadow_blur_passes: screenshot.shadow_blur_passes,
|
|
||||||
shadow_color: screenshot.shadow_color,
|
shadow_color: screenshot.shadow_color,
|
||||||
shadow_offset_x: screenshot.shadow_offset_x,
|
shadow_offset_x: screenshot.shadow_offset_x,
|
||||||
shadow_offset_y: screenshot.shadow_offset_y
|
shadow_offset_y: screenshot.shadow_offset_y
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
|
||||||
JsonObject {
|
JsonObject {
|
||||||
property real corner_radius: 12.0
|
|
||||||
property bool drop_shadow: true
|
|
||||||
property bool enable_pp: true
|
property bool enable_pp: true
|
||||||
property string mode: "manual"
|
property string mode: "manual"
|
||||||
property bool rounded_corners: false
|
property real radius: 12.0
|
||||||
property int shadow_blur_passes: 1
|
property bool rounding: false
|
||||||
property real shadow_blur_radius: 22.0
|
property bool shadow: true
|
||||||
|
property real shadow_blur: 22.0
|
||||||
property list<int> shadow_color: [0, 0, 0, 160]
|
property list<int> shadow_color: [0, 0, 0, 160]
|
||||||
property real shadow_offset_x: 5.0
|
property real shadow_offset_x: 5.0
|
||||||
property real shadow_offset_y: 5.0
|
property real shadow_offset_y: 5.0
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ SettingsPage {
|
|||||||
min: 0
|
min: 0
|
||||||
name: "Corner radius"
|
name: "Corner radius"
|
||||||
object: Config.screenshot
|
object: Config.screenshot
|
||||||
setting: "corner_radius"
|
setting: "radius"
|
||||||
shouldBeActive: Config.screenshot.mode === "manual"
|
shouldBeActive: Config.screenshot.mode === "manual"
|
||||||
step: 1
|
step: 1
|
||||||
}
|
}
|
||||||
@@ -60,9 +60,9 @@ SettingsPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SettingSwitch {
|
SettingSwitch {
|
||||||
name: "Enable drop shadow"
|
name: "Enable shadow"
|
||||||
object: Config.screenshot
|
object: Config.screenshot
|
||||||
setting: "drop_shadow"
|
setting: "shadow"
|
||||||
shouldBeActive: Config.screenshot.mode === "manual"
|
shouldBeActive: Config.screenshot.mode === "manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ SettingsPage {
|
|||||||
SettingSwitch {
|
SettingSwitch {
|
||||||
name: "Enable rounded corners"
|
name: "Enable rounded corners"
|
||||||
object: Config.screenshot
|
object: Config.screenshot
|
||||||
setting: "rounded_corners"
|
setting: "rounding"
|
||||||
shouldBeActive: Config.screenshot.mode === "manual"
|
shouldBeActive: Config.screenshot.mode === "manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,9 +83,9 @@ SettingsPage {
|
|||||||
|
|
||||||
SettingSpinBox {
|
SettingSpinBox {
|
||||||
min: 0
|
min: 0
|
||||||
name: "Shadow blur radius"
|
name: "Shadow blur amount"
|
||||||
object: Config.screenshot
|
object: Config.screenshot
|
||||||
setting: "shadow_blur_radius"
|
setting: "shadow_blur"
|
||||||
shouldBeActive: Config.screenshot.mode === "manual"
|
shouldBeActive: Config.screenshot.mode === "manual"
|
||||||
step: 1
|
step: 1
|
||||||
}
|
}
|
||||||
@@ -94,29 +94,29 @@ SettingsPage {
|
|||||||
shouldBeActive: Config.screenshot.mode === "manual"
|
shouldBeActive: Config.screenshot.mode === "manual"
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingSwitch {
|
// SettingSwitch {
|
||||||
name: "Shadow color broken atm"
|
// name: "Shadow color broken atm"
|
||||||
object: Config.Screenshot
|
// object: Config.Screenshot
|
||||||
setting: "shadow_color"
|
// setting: "shadow_color"
|
||||||
shouldBeActive: Config.screenshot.mode === "manual"
|
// shouldBeActive: Config.screenshot.mode === "manual"
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
|
// Separator {
|
||||||
|
// shouldBeActive: Config.screenshot.mode === "manual"
|
||||||
|
// }
|
||||||
|
|
||||||
Separator {
|
// SettingSpinBox {
|
||||||
shouldBeActive: Config.screenshot.mode === "manual"
|
// min: 1
|
||||||
}
|
// name: "Shadow passes"
|
||||||
|
// object: Config.screenshot
|
||||||
SettingSpinBox {
|
// setting: "shadow_blur_passes"
|
||||||
min: 1
|
// shouldBeActive: Config.screenshot.mode === "manual"
|
||||||
name: "Shadow passes"
|
// step: 1
|
||||||
object: Config.screenshot
|
// }
|
||||||
setting: "shadow_blur_passes"
|
//
|
||||||
shouldBeActive: Config.screenshot.mode === "manual"
|
// Separator {
|
||||||
step: 1
|
// shouldBeActive: Config.screenshot.mode === "manual"
|
||||||
}
|
// }
|
||||||
|
|
||||||
Separator {
|
|
||||||
shouldBeActive: Config.screenshot.mode === "manual"
|
|
||||||
}
|
|
||||||
|
|
||||||
SettingSpinBox {
|
SettingSpinBox {
|
||||||
min: 0
|
min: 0
|
||||||
|
|||||||
@@ -1011,7 +1011,7 @@ export const settingsIndex = [
|
|||||||
keywords: ["corner", "radius"],
|
keywords: ["corner", "radius"],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Enable drop shadow",
|
name: "Enable shadow",
|
||||||
category: "screenshot",
|
category: "screenshot",
|
||||||
categoryName: "Screenshot",
|
categoryName: "Screenshot",
|
||||||
section: "Screenshot",
|
section: "Screenshot",
|
||||||
@@ -1025,19 +1025,19 @@ export const settingsIndex = [
|
|||||||
keywords: ["rounded", "corners"],
|
keywords: ["rounded", "corners"],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Shadow blur radius",
|
name: "Shadow blur amount",
|
||||||
category: "screenshot",
|
category: "screenshot",
|
||||||
categoryName: "Screenshot",
|
categoryName: "Screenshot",
|
||||||
section: "Screenshot",
|
section: "Screenshot",
|
||||||
keywords: ["blur", "shadow", "radius"],
|
keywords: ["blur", "shadow", "radius"],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "Shadow color",
|
// name: "Shadow color",
|
||||||
category: "screenshot",
|
// category: "screenshot",
|
||||||
categoryName: "Screenshot",
|
// categoryName: "Screenshot",
|
||||||
section: "Screenshot",
|
// section: "Screenshot",
|
||||||
keywords: ["color", "shadow"],
|
// keywords: ["color", "shadow"],
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
name: "Shadow offset X",
|
name: "Shadow offset X",
|
||||||
category: "screenshot",
|
category: "screenshot",
|
||||||
|
|||||||
Reference in New Issue
Block a user