Skip to content

Commit

Permalink
Merge pull request #344 from Foundation-Devices/SFT-2227-long-screens…
Browse files Browse the repository at this point in the history
…-invisible-scroll

SFT-2227: fixed invisible scrollbar on long text pages
  • Loading branch information
mjg-foundation committed Jun 21, 2023
2 parents eea29dd + 178df9c commit 2385753
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ports/stm32/boards/Passport/modules/pages/long_text_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
from styles.style import Stylize
from views import Label, View, Icon
from pages import Page
from styles.colors import TEXT_GREY
from styles.colors import TEXT_GREY, SCROLLBAR_BG_COLOR
import microns
import passport


class LongTextPage(Page):
Expand Down Expand Up @@ -54,6 +55,10 @@ def __init__(self,
default.flex_fill()
default.pad(left=12, right=12)

with Stylize(self.container, selector=lv.PART.SCROLLBAR) as scrollbar:
if not passport.IS_COLOR:
scrollbar.bg_color(SCROLLBAR_BG_COLOR)

if self.text is not None:
self.text = Label(text=self.text)

Expand Down

0 comments on commit 2385753

Please sign in to comment.