edit_window: Always use .suggested-action style

This commit is contained in:
Sophie Herold 2025-01-16 12:18:52 +01:00
parent 3c7a2e2514
commit 0a3a6efa02
4 changed files with 8 additions and 6 deletions

View file

@ -266,11 +266,6 @@ impl LpEditWindow {
let done_sensitive = operations
.as_ref()
.is_some_and(|x| !x.operations().is_empty());
if done_sensitive {
imp.done.add_css_class("suggested-action");
} else {
imp.done.remove_css_class("suggested-action");
}
imp.done.set_sensitive(done_sensitive);
imp.operations.replace(operations);

View file

@ -20,7 +20,7 @@
<property name="use-underline">true</property>
<property name="sensitive">false</property>
<style>
<class name="raised" />
<class name="suggested-action" />
</style>
<property name="popover">
<object class="GtkPopover">