client: Add more options for displaying images from messages

- An application setting allowing to always trust images
- An option to trust images from an email domain
- Replaces buttons by a menu in infobar
This commit is contained in:
Cédric Bellegarde 2022-06-30 14:44:18 +02:00
parent bc4fe28a25
commit 9f893adc47
9 changed files with 246 additions and 47 deletions

View file

@ -45,4 +45,21 @@
</item>
</section>
</menu>
<menu id="show_images_menu">
<section>
<attribute name="label" translatable="yes">Show images</attribute>
<item>
<attribute name="label" translatable="yes">For this message</attribute>
<attribute name="action">msg.show-images-message</attribute>
</item>
<item>
<attribute name="label" translatable="yes">For this sender</attribute>
<attribute name="action">msg.show-images-sender</attribute>
</item>
<item>
<attribute name="label" translatable="yes">For this domain</attribute>
<attribute name="action">msg.show-images-domain</attribute>
</item>
</section>
</menu>
</interface>

View file

@ -159,6 +159,19 @@ row.geary-folder-popover-list-row > label {
border-width: 0;
}
.geary-message infobar box button {
background: alpha(black, 0.1);
color: alpha(@theme_text_color, 0.7);
border: none;
box-shadow: none;
}
.geary-message infobar box button:hover,
.geary-message infobar box button:checked {
background: alpha(black, 0.2);
color: @theme_text_color;
}
grid.geary-message-summary {
border-top: 4px solid transparent;
padding: 12px;