Case Customisation and Themes
#20
(2024-03-20, 09:33 PM)nanocodebug Wrote: Oh this is fun! I see the image recoloring and gradients, I'll mess around with themeing system.
I'm partial to monochrome icons so I've been working on some custom battery icons, it would be neat if themes could extend to include icons on SD too (in some future).


Thanks!

Yeah, I hoped to be able to use styles directly to set image sources. Unfortunately afaict lvgl 8.3 doesn't support changing the img_src from styles, which is odd to me because it *does* support bg_img_src as a style property.

I think most likely what I'll end up doing for icons and images will be searching first in the theme directory for any overridden icons -- assuming each theme has its own directory with some optional images -- and if a theme provides them use those, otherwise use some inbuilt ones.

I'm also planning on replacing the battery icon with a white monochrome version that can be recoloured, or at least providing that as another option. We didn't actually know back when we designed those icons that lvgl could do image recolouring on our hardware. Tongue
  Reply


Messages In This Thread
Case Customisation and Themes - by ailurux - 2024-03-14, 11:23 PM
RE: Case Customisation and Themes - by neckspike - 2024-03-15, 12:44 AM
RE: Case Customisation and Themes - by ailurux - 2024-03-15, 01:38 AM
RE: Case Customisation and Themes - by neckspike - 2024-03-15, 02:42 AM
RE: Case Customisation and Themes - by Construc_ - 2024-03-15, 01:44 AM
RE: Case Customisation and Themes - by jacqueline - 2024-03-15, 01:49 AM
RE: Case Customisation and Themes - by ailurux - 2024-03-15, 03:48 AM
RE: Case Customisation and Themes - by neckspike - 2024-03-15, 11:02 AM
RE: Case Customisation and Themes - by redshift - 2024-03-15, 03:49 PM
RE: Case Customisation and Themes - by neckspike - 2024-03-15, 04:44 PM
RE: Case Customisation and Themes - by gkr - 2024-03-17, 10:54 AM
RE: Case Customisation and Themes - by neckspike - 2024-03-17, 09:53 PM
RE: Case Customisation and Themes - by ailurux - 2024-03-17, 10:03 PM
RE: Case Customisation and Themes - by ailurux - 2024-03-18, 12:51 AM
RE: Case Customisation and Themes - by ailurux - 2024-03-20, 11:10 PM
RE: Case Customisation and Themes - by jacqueline - 2024-03-17, 09:54 PM
RE: Case Customisation and Themes - by jacqueline - 2024-03-20, 11:01 PM

Forum Jump: