[simple-scan] Improve compression scale which appear during file saving, to be more intuitive.
- From: Bartosz <bkosiorek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan] Improve compression scale which appear during file saving, to be more intuitive.
- Date: Wed, 17 Jun 2020 11:39:59 +0000 (UTC)
commit 1a76124052d165d22f77581400515233b71fde21
Author: Bartosz Kosiorek <gang65 poczta onet pl>
Date: Sat Apr 18 00:07:11 2020 +0200
Improve compression scale which appear during file saving, to be more intuitive.
Two additional labels were added to saving dialog: "Minimum size" and "Full detail"
Fixes #156
src/app-window.vala | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 7e3579c..bc80746 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -519,6 +519,7 @@ public class AppWindow : Gtk.ApplicationWindow
var box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6);
box.visible = true;
+ box.spacing = 10;
save_dialog.set_extra_widget (box);
/* Label in save dialog beside combo box to choose file format (PDF, JPEG, PNG, WEBP) */
@@ -550,12 +551,14 @@ public class AppWindow : Gtk.ApplicationWindow
var quality_adjustment = new Gtk.Adjustment (75, 0, 100, 1, 10, 0);
var quality_scale = new Gtk.Scale (Gtk.Orientation.HORIZONTAL, quality_adjustment);
- quality_scale.width_request = 200;
+ quality_scale.width_request = 250;
quality_scale.draw_value = false;
- quality_scale.add_mark (0, Gtk.PositionType.BOTTOM, null);
+ var minimum_size_label = "<small>%s</small>".printf (_("Minimum size"));
+ quality_scale.add_mark (quality_adjustment.lower, Gtk.PositionType.BOTTOM, minimum_size_label);
quality_scale.add_mark (75, Gtk.PositionType.BOTTOM, null);
quality_scale.add_mark (90, Gtk.PositionType.BOTTOM, null);
- quality_scale.add_mark (100, Gtk.PositionType.BOTTOM, null);
+ var full_detail_label = "<small>%s</small>".printf (_("Full detail"));
+ quality_scale.add_mark (quality_adjustment.upper, Gtk.PositionType.BOTTOM, full_detail_label);
quality_adjustment.value = settings.get_int ("jpeg-quality");
quality_adjustment.value_changed.connect (() => { settings.set_int ("jpeg-quality", (int)
quality_adjustment.value); });
box.add (quality_scale);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]