Package: xpra / 0.17.6+dfsg-1

quality-levels.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Last-Update: 2016-07-03
Forwarded: yes
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: add more quality levels to menu; show quality percentage.

--- a/xpra/client/gtk_base/gtk_tray_menu_base.py
+++ b/xpra/client/gtk_base/gtk_tray_menu_base.py
@@ -36,17 +36,20 @@
 WEBCAM_MENU = os.environ.get("XPRA_SHOW_WEBCAM_MENU", "1")=="1"
 
 LOSSLESS = "Lossless"
 QUALITY_OPTIONS_COMMON = {
-                50      : "Average",
-                30      : "Low",
+                70      : "70% (Better)",
+                50      : "50% (Average)",
+                30      : "30% (Low)",
+                20      : "20% (Lower)",
+                10      : "10% (Very Low)",
                 }
 MIN_QUALITY_OPTIONS = QUALITY_OPTIONS_COMMON.copy()
 MIN_QUALITY_OPTIONS[0] = "None"
 QUALITY_OPTIONS = QUALITY_OPTIONS_COMMON.copy()
 QUALITY_OPTIONS[0]  = "Auto"
-QUALITY_OPTIONS[1]  = "Lowest"
-QUALITY_OPTIONS[90]  = "Best"
+QUALITY_OPTIONS[1]  = "1% (Lowest)"
+QUALITY_OPTIONS[90]  = "90% (Best)"
 QUALITY_OPTIONS[100]  = LOSSLESS
 
 
 SPEED_OPTIONS_COMMON = {