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