22#:import system platform.system
33#:import BUILD_DATE main.__BUILD_DATE__
44
5+ <ForcedToggleButton@ToggleButton>
6+ allow_no_selection: False
7+
58FloatLayout:
69
710 FloatLayout:
@@ -45,24 +48,78 @@ FloatLayout:
4548 pos: (0 , 63 )
4649 pos_hint: {' top' : .85 }
4750
51+ BoxLayout
52+ id : spl_section
53+ orientation: ' horizontal'
54+
55+ BoxLayout
56+ id : spl_mode_section_1
57+ orientation: ' vertical'
58+
59+ ForcedToggleButton
60+ id : mode_k20
61+ text: " K-20"
62+ group: ' mode_ref'
63+ on_press: app.mode_changed(self )
64+
65+ ForcedToggleButton
66+ id : mode_ebu
67+ text: " EBU/SMPTE"
68+ state: ' down' # Default
69+ group: ' mode_ref'
70+ on_press: app.mode_changed(self )
71+
72+ BoxLayout
73+ id : spl_display_section
74+ orientation: ' vertical'
75+
76+ TextInput:
77+ id : spl_display
78+ text: " ---dB SPL"
79+ readonly: True
80+ font_name: ' RobotoMono-Regular'
81+ font_size: 36
82+ halign: ' center'
83+ multiline: False
84+ foreground_color: [.85 , .85 , .85 , 1 ]
85+ background_color: [.1 , .1 , .1 , 1 ]
86+ #on_text_validate: app.spl_text_changed(self)
87+ disabled: False if root.ids.power.state == ' down' else True
88+
89+ TextInput:
90+ id : ref_display
91+ text: " @ ---dB FS"
92+ readonly: True
93+ font_name: ' RobotoMono-Regular'
94+ font_size: 24
95+ halign: ' center'
96+ valign: ' middle'
97+ multiline: False
98+ foreground_color: [.85 , .85 , .85 , 1 ]
99+ background_color: [.1 , .1 , .1 , 1 ]
100+ #on_text_validate: app.ref_text_changed(self)
101+
102+ BoxLayout
103+ id : spl_mode_section_2
104+ orientation: ' vertical'
105+
106+ ForcedToggleButton
107+ id : mode_k14
108+ text: " K-14"
109+ group: ' mode_ref'
110+ on_press: app.mode_changed(self )
111+
112+ ForcedToggleButton
113+ id : mode_k12
114+ text: " K-12"
115+ group: ' mode_ref'
116+ on_press: app.mode_changed(self )
117+
48118 BoxLayout:
49119 id : volume_section
50120 orientation: ' vertical'
51121 disabled: False if root.ids.power.state == ' down' else True
52122
53- TextInput:
54- id : volume_display
55- text: " ---.-dB"
56- font_name: ' RobotoMono-Regular'
57- font_size: 36
58- halign: ' center'
59- multiline: False
60- size: (200 , 60 )
61- size_hint: (1 , None )
62- foreground_color: [.85 , .85 , .85 , 1 ]
63- background_color: [.1 , .1 , .1 , 1 ]
64- on_text_validate: app.volume_text_changed(self )
65-
66123 BoxLayout:
67124 id : volume_keys_layout
68125 orientation: ' horizontal'
@@ -72,6 +129,17 @@ FloatLayout:
72129 text: " -"
73130 on_press: app.volume_minus_pressed(self )
74131
132+ TextInput:
133+ id : volume_display
134+ text: " ---.-dB"
135+ font_name: ' RobotoMono-Regular'
136+ font_size: 36
137+ halign: ' center'
138+ multiline: False
139+ foreground_color: [.85 , .85 , .85 , 1 ]
140+ background_color: [.1 , .1 , .1 , 1 ]
141+ on_text_validate: app.volume_text_changed(self )
142+
75143 Button:
76144 id : volume_plus
77145 text: " +"
@@ -83,6 +151,12 @@ FloatLayout:
83151 group: ' mute'
84152 on_press: app.volume_mute_pressed(self )
85153
154+ BoxLayout
155+ id : presets_section
156+ orientation: ' vertical'
157+ disabled: False if root.ids.power.state == ' down' else True
158+ size_hint: (1 , .5 )
159+
86160 BoxLayout
87161 id : volume_presets_layout
88162 orientation: ' horizontal'
@@ -105,9 +179,16 @@ FloatLayout:
105179 group: ' vol_preset'
106180 on_press: app.vol_preset_3_pressed(self )
107181
182+ ToggleButton:
183+ id : vol_preset_4
184+ text: app.config.get(' denonremote' , ' vol_preset_4' )
185+ group: ' vol_preset'
186+ on_press: app.vol_preset_4_pressed(self )
187+
108188 BoxLayout:
109189 id : sources_section
110190 orientation: ' vertical'
191+ size_hint: (1 , 1.5 )
111192
112193 ToggleButton:
113194 id : fav_src_1
@@ -127,7 +208,6 @@ FloatLayout:
127208 group: ' sources'
128209 on_press: app.fav_src_3_pressed(self )
129210
130-
131211 FloatLayout:
132212 id : footer
133213 disabled: False
@@ -157,6 +237,11 @@ FloatLayout:
157237 id : brand_label
158238 text: " EMA Tech."
159239
240+ Label:
241+ id : copyright_label
242+ text: " (c) 2021 Raphaël Doursenaud"
243+ font_size: 12
244+
160245 Label:
161246 id : version_label
162247 text: " v%s %s (Built on %s )" % (VERSION , system(), BUILD_DATE )
0 commit comments