what the helly
This commit is contained in:
+8
-2
@@ -29,10 +29,15 @@ pub struct Config {
|
||||
|
||||
/// Milliseconds to wait after launch before capturing the desktop snapshot.
|
||||
/// Increase this if the overlay background still shows the terminal/launcher
|
||||
/// that started rs-pictures. Default: 800.
|
||||
/// that started rs-pictures. Default: 200.
|
||||
#[serde(default = "default_capture_delay_ms")]
|
||||
pub capture_delay_ms: u64,
|
||||
|
||||
/// If true, the selection overlay will be transparent (live preview) instead of
|
||||
/// a frozen screenshot. The final capture happens after selection.
|
||||
#[serde(default)]
|
||||
pub live_mode: bool,
|
||||
|
||||
/// Visual effects applied after capture.
|
||||
pub effects: EffectsConfig,
|
||||
}
|
||||
@@ -85,6 +90,7 @@ impl Default for Config {
|
||||
auto_save: false,
|
||||
auto_copy: false,
|
||||
capture_delay_ms: default_capture_delay_ms(),
|
||||
live_mode: false,
|
||||
effects: EffectsConfig::default(),
|
||||
}
|
||||
}
|
||||
@@ -145,7 +151,7 @@ impl Config {
|
||||
}
|
||||
}
|
||||
|
||||
fn default_capture_delay_ms() -> u64 { 800 }
|
||||
fn default_capture_delay_ms() -> u64 { 200 }
|
||||
|
||||
fn dirs_default_pictures() -> Option<PathBuf> {
|
||||
// Use XDG_PICTURES_DIR if available, otherwise ~/Pictures
|
||||
|
||||
Reference in New Issue
Block a user