Comments (7)
Hi,
it is a good idea, thank you!
Do you mean if the label's style is NULL (inherited from parent) use transparent background and use mcolor as background color if label's style is explicitly set? Maybe the empty style attribute can disable this feature.
from lvgl.
Or just keep it as transparent unless it's explcitly set?
from lvgl.
Currently there is no tracking for a unique style attribute (like mcolor) whether it is set or not. Only I can see the entire style is inherited or not.
from lvgl.
If we think it further the label can use all backround related style attributes like mcolor, gcolor, bcolor, bopa etc. but only if its style is set explicitly. Else only use the inherited font, ccolor, letter space etc
What do you think?
from lvgl.
I added the update to beta
. Now if a label's style is set by lv_obj_set_style() to not NULL then background will be drawn.
To avoid drawing background set empty=1 and bwidth=0 properties or copy LV_STYLE_TRANSP when initializing a new label style.
Tests are still needed to see how it effect existing objects where labels are used.
from lvgl.
Just had chance to test this but only for a straight label. Looks very good.
from lvgl.
Thanks for testing!
from lvgl.
Related Issues (20)
- The coordinates of the screen and the cursor do not match HOT 1
- Keyboard keys are colored differently HOT 1
- touchscreen no work with sdl + drm HOT 7
- carousel widget is missing, how to replace? HOT 1
- What pass `connector_id` in `lv_linux_drm_set_file` on first time setup? HOT 9
- rlottie animations not running as fast as they should HOT 3
- Add RAW and RAW_ALPHA color format support in LVGLImage.py tool HOT 1
- Arabic and Hebrew percent sign display issues under RTL layout HOT 2
- lv_obj_set_style_border_side() doesn't work! HOT 5
- crashed when tabview slide release HOT 1
- Problems using LV_OBJ_FLAG_SCROLL_ON_FOCUS HOT 1
- LVGL and MPLAB X project on Windows - GCC and CreateProcess issue HOT 1
- The chart with the faded area line cannot display the value pop-up when pressing a point? HOT 3
- `lv_obj_set_property()` with selector HOT 8
- stm32u5g9j-dk1 HOT 3
- Warning C4200 occurs frequently during build on VisualStudio. HOT 1
- Bar rotates automatically to horizontally if width>heigth HOT 1
- Compilation error using VG-Lite HOT 9
- [NOT A BUG] Label of List can't be centered. HOT 2
- [scale] Be able to configure the part drawing order
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.