Add watermark tiling, rotation types, margin/scale controls
Wire tiled, margin, and scale UI controls to JobConfig and pass through to WatermarkConfig. Add tiled text and image watermark implementations that repeat across the full image. Add font family filesystem search for named fonts. Add WatermarkRotation enum.
This commit is contained in:
@@ -496,6 +496,27 @@ pub fn build_watermark_page(state: &AppState) -> adw::NavigationPage {
|
||||
];
|
||||
});
|
||||
}
|
||||
// Wire tiled toggle
|
||||
{
|
||||
let jc = state.job_config.clone();
|
||||
tiled_row.connect_active_notify(move |row| {
|
||||
jc.borrow_mut().watermark_tiled = row.is_active();
|
||||
});
|
||||
}
|
||||
// Wire margin spinner
|
||||
{
|
||||
let jc = state.job_config.clone();
|
||||
margin_row.connect_value_notify(move |row| {
|
||||
jc.borrow_mut().watermark_margin = row.value() as u32;
|
||||
});
|
||||
}
|
||||
// Wire scale spinner
|
||||
{
|
||||
let jc = state.job_config.clone();
|
||||
scale_row.connect_value_notify(move |row| {
|
||||
jc.borrow_mut().watermark_scale = row.value() as f32;
|
||||
});
|
||||
}
|
||||
// Wire image chooser button
|
||||
{
|
||||
let jc = state.job_config.clone();
|
||||
|
||||
Reference in New Issue
Block a user