edit_window: Always use .suggested-action style
This commit is contained in:
parent
3c7a2e2514
commit
0a3a6efa02
4 changed files with 8 additions and 6 deletions
2
data/resources/icons/scalable/actions/crop-symbolic.svg
Normal file
2
data/resources/icons/scalable/actions/crop-symbolic.svg
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 4 -0.03125 c -0.554688 0 -1 0.03125 -1 0.03125 v 2 h 2 v -1.03125 c 0 -0.554688 -0.445312 -1 -1 -1 z m -4 3.03125 v 0.988281 c 0 0.554688 0.445312 0.996094 1 1 l 10 0.011719 v 5 h 2 v -6.003906 c 0 -0.550782 -0.445312 -0.996094 -1 -0.996094 h -0.003906 z m 3 3 v 6.003906 c 0 0.550782 0.445312 0.996094 1 0.996094 c 4.023438 0.007812 12 0 12 0 v -0.988281 c 0 -0.550781 -1 -0.996094 -1 -0.996094 l -10 -0.015625 v -5 z m 8 8 v 1.03125 c 0 0.554688 0.445312 1 1 1 h 0.003906 c 0.550782 0 0.996094 -0.03125 0.996094 -0.03125 v -2 z m 0 0" fill="#222222"/></svg>
|
||||||
|
After Width: | Height: | Size: 697 B |
|
|
@ -85,4 +85,9 @@ dialog.error-details textview {
|
||||||
.error-message {
|
.error-message {
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
|
}
|
||||||
|
|
||||||
|
menubutton.suggested-action button {
|
||||||
|
padding-left: 17px;
|
||||||
|
padding-right: 17px;
|
||||||
}
|
}
|
||||||
|
|
@ -266,11 +266,6 @@ impl LpEditWindow {
|
||||||
let done_sensitive = operations
|
let done_sensitive = operations
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.is_some_and(|x| !x.operations().is_empty());
|
.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.done.set_sensitive(done_sensitive);
|
||||||
|
|
||||||
imp.operations.replace(operations);
|
imp.operations.replace(operations);
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<property name="use-underline">true</property>
|
<property name="use-underline">true</property>
|
||||||
<property name="sensitive">false</property>
|
<property name="sensitive">false</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="raised" />
|
<class name="suggested-action" />
|
||||||
</style>
|
</style>
|
||||||
<property name="popover">
|
<property name="popover">
|
||||||
<object class="GtkPopover">
|
<object class="GtkPopover">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue