Add watermark tiling, rotation types, margin/scale controls
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