BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
94e686ba
Commit
94e686ba
authored
Jan 13, 2018
by
Gabor Kiss-Vamosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv_obj_get_style: with NULL style check if the parent is focused and use the focused style
parent
86110cf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lv_obj.c
lv_core/lv_obj.c
+10
-0
No files found.
lv_core/lv_obj.c
View file @
94e686ba
...
...
@@ -1202,7 +1202,17 @@ lv_style_t * lv_obj_get_style(lv_obj_t * obj)
while
(
par
)
{
if
(
par
->
style_p
)
{
if
(
par
->
style_p
->
glass
==
0
)
{
#if USE_LV_GROUP == 0
style_act
=
par
->
style_p
;
#else
/*Is a parent is focused then use then focused style*/
lv_group_t
*
g
=
lv_obj_get_group
(
par
);
if
(
lv_group_get_focused
(
g
)
==
par
)
{
style_act
=
lv_group_mod_style
(
g
,
par
->
style_p
);
}
else
{
style_act
=
par
->
style_p
;
}
#endif
break
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment