mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-25 06:40:38 +01:00
Updated drop-down menu colors
This commit is contained in:
parent
bc2e524ec9
commit
58751bb0e5
@ -391,9 +391,17 @@ class SidebandApp(MDApp):
|
||||
if self.sideband.config["dark_ui"]:
|
||||
self.color_reject = colors["DeepOrange"]["900"]
|
||||
self.color_accept = colors["LightGreen"]["700"]
|
||||
if not self.sideband.config["eink_mode"]:
|
||||
self.color_hover = colors["Dark"]["CardsDialogs"]
|
||||
else:
|
||||
self.color_hover = colors["Gray"]["800"]
|
||||
else:
|
||||
self.color_reject = colors["DeepOrange"]["800"]
|
||||
self.color_accept = colors["LightGreen"]["700"]
|
||||
if not self.sideband.config["eink_mode"]:
|
||||
self.color_hover = colors["Light"]["CardsDialogs"]
|
||||
else:
|
||||
self.color_hover = colors["Light"]["AppBar"]
|
||||
|
||||
self.apply_eink_mods()
|
||||
|
||||
@ -1229,6 +1237,9 @@ class SidebandApp(MDApp):
|
||||
|
||||
self.update_message_widgets()
|
||||
|
||||
def message_attachment_action(self, sender):
|
||||
pass
|
||||
|
||||
def update_message_widgets(self):
|
||||
toolbar_items = self.messages_view.ids.messages_toolbar.ids.right_actions.children
|
||||
mode_item = toolbar_items[1]
|
||||
|
@ -242,6 +242,7 @@ class Announces():
|
||||
elevation=0,
|
||||
radius=dp(3),
|
||||
)
|
||||
item.dmenu.md_bg_color = self.app.color_hover
|
||||
|
||||
def callback_factory(ref):
|
||||
def x(sender):
|
||||
|
@ -378,6 +378,7 @@ class Conversations():
|
||||
radius=dp(3),
|
||||
)
|
||||
self.conversation_dropdown.effect_cls = ScrollEffect
|
||||
self.conversation_dropdown.md_bg_color = self.app.color_hover
|
||||
|
||||
item.dmenu = self.conversation_dropdown
|
||||
|
||||
|
@ -679,6 +679,7 @@ class Messages():
|
||||
elevation=0,
|
||||
radius=dp(3),
|
||||
)
|
||||
item.dmenu.md_bg_color = self.app.color_hover
|
||||
item.dmenu.retry_item = retry_item
|
||||
|
||||
def callback_factory(ref):
|
||||
@ -730,6 +731,7 @@ MDScreen:
|
||||
[['menu', lambda x: root.app.nav_drawer.set_state("open")],]
|
||||
right_action_items:
|
||||
[
|
||||
['attachment-plus', lambda x: root.app.message_attachment_action(self)],
|
||||
['map-marker-path', lambda x: root.app.peer_show_telemetry_action(self)],
|
||||
['map-search', lambda x: root.app.peer_show_location_action(self)],
|
||||
['lan-connect', lambda x: root.app.message_propagation_action(self)],
|
||||
|
Loading…
Reference in New Issue
Block a user