mirror of
https://github.com/markqvist/Sideband.git
synced 2026-11-20 15:06:25 -05:00
Added improved copy/paste behaviour for fields
This commit is contained in:
parent
bab181ae76
commit
fd7f8dfd76
3 changed files with 83 additions and 36 deletions
|
|
@ -1121,7 +1121,6 @@ MDScreen:
|
|||
|
||||
MDGridLayout:
|
||||
cols: 1
|
||||
spacing: dp(16)
|
||||
padding: [dp(28), dp(28), dp(28), dp(28)]
|
||||
size_hint_y: None
|
||||
height: self.minimum_height
|
||||
|
|
@ -1132,13 +1131,18 @@ MDScreen:
|
|||
size_hint_y: None
|
||||
height: self.texture_size[1]
|
||||
|
||||
MDBoxLayout:
|
||||
id: telemetry_information_fields
|
||||
orientation: "horizontal"
|
||||
MDLabel:
|
||||
id: settings_info1
|
||||
markup: True
|
||||
text: ""
|
||||
size_hint_y: None
|
||||
spacing: dp(16)
|
||||
height: dp(64)
|
||||
padding: [0, dp(0), 0, dp(0)]
|
||||
height: self.texture_size[1]
|
||||
|
||||
MDBoxLayout:
|
||||
orientation: "vertical"
|
||||
size_hint_y: None
|
||||
height: self.minimum_height
|
||||
padding: [0, dp(24), 0, dp(24)]
|
||||
|
||||
MDTextField:
|
||||
id: settings_display_name
|
||||
|
|
@ -1147,20 +1151,20 @@ MDScreen:
|
|||
max_text_length: 128
|
||||
font_size: dp(24)
|
||||
|
||||
MDTextField:
|
||||
id: settings_propagation_node_address
|
||||
hint_text: "LXMF Propagation Node"
|
||||
text: ""
|
||||
max_text_length: 32
|
||||
font_size: dp(24)
|
||||
height: dp(64)
|
||||
MDTextField:
|
||||
id: settings_propagation_node_address
|
||||
hint_text: "LXMF Propagation Node"
|
||||
text: ""
|
||||
max_text_length: 32
|
||||
font_size: dp(24)
|
||||
height: dp(64)
|
||||
|
||||
MDTextField:
|
||||
id: settings_print_command
|
||||
hint_text: "Print Command"
|
||||
text: ""
|
||||
font_size: dp(24)
|
||||
height: dp(64)
|
||||
MDTextField:
|
||||
id: settings_print_command
|
||||
hint_text: "Print Command"
|
||||
text: ""
|
||||
font_size: dp(24)
|
||||
height: dp(64)
|
||||
|
||||
MDLabel:
|
||||
text: "Address & Identity"
|
||||
|
|
@ -1169,27 +1173,33 @@ MDScreen:
|
|||
height: self.texture_size[1]
|
||||
|
||||
MDLabel:
|
||||
id: settings_info1
|
||||
id: settings_info2
|
||||
markup: True
|
||||
text: "\\nYour address and identity hashes are derived from your primary identity keys, and are therefore not editable, but these fields can be used to view and copy the hashes. If you want a new LXMF address, create or import a new primary identity."
|
||||
text: "\\nYour address and identity hashes are derived from your primary identity keys, and are therefore not editable, but these fields can be used to view and copy the hashes. If you want a new LXMF address, create or import a new primary identity.\\n"
|
||||
size_hint_y: None
|
||||
height: self.texture_size[1]
|
||||
|
||||
MDTextField:
|
||||
id: settings_lxmf_address
|
||||
hint_text: "Your LXMF Address"
|
||||
text: ""
|
||||
max_text_length: 32
|
||||
font_size: dp(24)
|
||||
height: dp(64)
|
||||
MDBoxLayout:
|
||||
orientation: "vertical"
|
||||
size_hint_y: None
|
||||
height: self.minimum_height
|
||||
padding: [0, dp(0), 0, dp(24)]
|
||||
|
||||
MDTextField:
|
||||
id: settings_identity_hash
|
||||
hint_text: "Your Identity Hash"
|
||||
text: ""
|
||||
max_text_length: 32
|
||||
font_size: dp(24)
|
||||
height: dp(64)
|
||||
MDTextField:
|
||||
id: settings_lxmf_address
|
||||
hint_text: "Your LXMF Address"
|
||||
text: ""
|
||||
max_text_length: 32
|
||||
font_size: dp(24)
|
||||
height: dp(64)
|
||||
|
||||
MDTextField:
|
||||
id: settings_identity_hash
|
||||
hint_text: "Your Identity Hash"
|
||||
text: ""
|
||||
max_text_length: 32
|
||||
font_size: dp(24)
|
||||
height: dp(64)
|
||||
|
||||
MDBoxLayout:
|
||||
orientation: "horizontal"
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ class Telemetry():
|
|||
self.screen.app = self.app
|
||||
self.screen.delegate = self
|
||||
self.app.root.ids.screen_manager.add_widget(self.screen)
|
||||
self.app.bind_clipboard_actions(self.screen.ids)
|
||||
|
||||
self.screen.ids.telemetry_collector.bind(focus=self.telemetry_save)
|
||||
if self.app.sideband.config["telemetry_collector"] == None:
|
||||
|
|
@ -319,6 +320,7 @@ class Telemetry():
|
|||
self.sensors_screen.app = self.app
|
||||
self.sensors_screen.delegate = self
|
||||
self.app.root.ids.screen_manager.add_widget(self.sensors_screen)
|
||||
self.bind_clipboard_actions(self.sensors_screen.ids)
|
||||
|
||||
info3 = "\nTo include a specific type of telemetry data while sending, it must be enabled below. Please note that some sensor types are not supported on all devices. Sideband will only be able to read a specific type of sensor if your device actually includes hardware for it.\n"
|
||||
if self.app.theme_cls.theme_style == "Dark":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue