Lines Matching refs:s
10 border width, font, text color and so on. It's similar to a ``class`` in CSS.
15 ``style_blue`` to the knob of a slider when it's in pressed state.
20 style defines it or use a default value if it's not specified by any of the
26 - Some properties (e.g. text color) can be inherited from a parent(s) if it's not specified in a Wi…
60 If a property is not defined in a state the best matching state's
65 What does the "best matching state's property" mean?
68 A higher value means higher precedence. To determine which state's
69 property to use let's take an example. Imagine the background color is
76 1. Initially the Widget is in the default state, so it's a simple case:
77 the property is perfectly defined in the Widget's current state as
82 default state's 0x0000 precedence, so gray color will be used.
89 5. It's possible to set e.g. rose color for :cpp:expr:`LV_STATE_PRESSED | LV_STATE_FOCUSED`.
91 the pressed state's precedence so rose color would be used.
94 the Widget remains white from the default state's property.
98 - The precedence (value) of states is quite intuitive, and it's something the
100 want to see if it's pressed, therefore the pressed state has a higher
105 for its current state it will fall back to the default state's property.
122 It's not required to set all the properties in one style. It's possible
134 are still taken into account. So let's examine the following case:
140 In this case, when the button is released (it's in default state) it
154 the parent Widget's styles. Inheritance is applied only if the given
155 property is not set in the Widget's styles (even in default state). In
156 this case, if the property is inheritable, the property's value will be
174 - :cpp:enumerator:`LV_PART_SCROLLBAR`: The scrollbar(s)
179 - :cpp:enumerator:`LV_PART_CURSOR`: Mark a specific place e.g. Text Area's or chart's cursor
228 To get a property's value from a style:
306 ``old_style`` and ``selector`` exists multiple times in ``obj``\ 's
342 …Widget(s) are affected by that style call :cpp:expr:`lv_obj_refresh_style(widget, part, property)`.
348 Get a style property's value on a Widget
351 To get the final value of a style's property considering
358 These functions use the Widget's current state and if no better candidate exists they return the de…
427 By default, when a Widget changes state (e.g. it's pressed) the new
429 transitions it's possible to play an animation on state change. For
433 The parameters of the transitions are stored in the styles. It's
492 size of the area to redraw, but it's never larger than the size of the
554 theme can be selected. The parent theme's styles will be added before
555 the custom theme's styles. Any number of themes can be chained this way.