Skip to content

Commit aa46b48

Browse files
authored
Optimize the background color of non-clickable items And logo (#333)
* Adjust the onekey icon and optimize the background of the connected wallet
1 parent 03c0ca9 commit aa46b48

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed
22 KB
Loading
-799 Bytes
Loading
-3.05 KB
Loading

core/src/trezor/lvglui/scrs/homescreen.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,10 +1871,17 @@ def __init__(self, prev_scr=None):
18711871
_(i18n_keys.CONTENT__COMING_SOON),
18721872
left_img_src="A:/res/okx-logo-48.png",
18731873
)
1874+
self.okx.add_style(
1875+
StyleWrapper().bg_color(lv_colors.ONEKEY_BLACK_5),
1876+
0,
1877+
)
18741878
self.okx.text_layout_vertical(pad_top=17, pad_ver=20)
1875-
self.okx.disable()
1879+
1880+
self.okx.label_left.set_style_text_color(lv_colors.WHITE_2, 0)
1881+
self.okx.label_right.set_style_text_color(lv_colors.ONEKEY_GRAY_1, 0)
18761882

18771883
self.add_event_cb(self.on_click, lv.EVENT.CLICKED, None)
1884+
self.okx.clear_flag(lv.obj.FLAG.CLICKABLE)
18781885

18791886
if not device.is_passphrase_enabled():
18801887
from trezor.qr import gen_hd_key

0 commit comments

Comments
 (0)