-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfb85a4
commit 47ad4d0
Showing
18 changed files
with
572 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
<component> | ||
|
||
<api> | ||
<prop name="text" type="string" default="Button"/> | ||
</api> | ||
|
||
<consts> | ||
<color name="dark_color" value="0x222222"/> | ||
</consts> | ||
|
||
<styles> | ||
<style name="main" bg_color="0x22222" border_width="2" border_color="0x333333" radius="100"/> | ||
<style name="main" bg_color="#dark_color" border_width="2" border_color="0x555555" radius="100"/> | ||
</styles> | ||
<view extends="lv_button" styles="main" width="$my_width"> | ||
|
||
<view extends="lv_button" styles="main"> | ||
<h2 text="$text" align="center"/> | ||
</view> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
<component> | ||
|
||
<api> | ||
<prop name="text" type="string" default="Button"/> | ||
</api> | ||
|
||
<styles> | ||
<style name="main" bg_color="0xff3322" text_color="0xffffff" border_color="0x333333" radius="100"/> | ||
<style name="main" bg_color="0xff3322" border_width="2" border_color="0x555555" radius="100"/> | ||
</styles> | ||
<view extends="button_default" styles="main" text="$text"> | ||
</view> | ||
</component> | ||
|
||
<view extends="lv_button" styles="main"> | ||
<h2 text="$text" align="center"/> | ||
</view> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
<component> | ||
|
||
<api> | ||
<prop name="text" type="string" default="Button"/> | ||
</api> | ||
|
||
<styles> | ||
<style name="main" bg_color="0xffbb44" text_color="0x000000" border_color="0x333333" radius="100"/> | ||
<style name="main" bg_color="0xffbb44" border_width="2" border_color="0x555555" radius="100"/> | ||
</styles> | ||
<view extends="button_default" styles="main" text="$text"> | ||
|
||
<view extends="lv_button" styles="main"> | ||
<h2 text="$text" align="center"/> | ||
</view> | ||
</component> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
<component> | ||
<component> | ||
<api> | ||
<prop name="text" type="string" default="Label"/> | ||
</api> | ||
|
||
<styles> | ||
<style name="main" text_font="lv_montserrat_18" /> | ||
<style name="main" text_font="arial_22" /> | ||
</styles> | ||
<view extends="lv_label" styles="main"> | ||
|
||
<view extends="lv_label" styles="main" text="$text"> | ||
</view> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
<component> | ||
<api> | ||
<prop name="text" type="string" default="Label"/> | ||
</api> | ||
|
||
<styles> | ||
<style name="main" text_font="lv_montserrat_16"/> | ||
<style name="main" text_font="arial_18"/> | ||
</styles> | ||
|
||
<view extends="lv_label" styles="main" text="$text"> | ||
</view> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
<component> | ||
<api> | ||
<prop name="text" type="string" default="Label"/> | ||
</api> | ||
|
||
<styles> | ||
<style name="main" text_font="lv_montserrat_14" /> | ||
<style name="main" text_font="arial_14"/> | ||
</styles> | ||
<view extends="lv_label" styles="main"> | ||
|
||
<view extends="lv_label" styles="main" text="$text"> | ||
</view> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,54 @@ | ||
<component> | ||
<view extends="lv_obj" width="100%" height="100%" style_radius="0" style_border_width="0"> | ||
<lv_obj flex_flow="column" width="50%" height="100%"> | ||
<slider_box title="First"/> | ||
<slider_box title="Temperature of the Living room"/> | ||
<slider_box title="The last one"/> | ||
</lv_obj> | ||
<styles> | ||
<style name="main" | ||
bg_color="0x000000" | ||
radius="0" | ||
border_width="0" | ||
layout="flex" | ||
flex_flow="row" | ||
width="100%" height="100%" | ||
pad_all="0" | ||
pad_column="0"/> | ||
|
||
<style name="cont" | ||
height="100%" | ||
bg_color="0x333333" | ||
flex_flow="column" | ||
layout="flex" | ||
radius="0" | ||
pad_all="0" | ||
border_width="2" /> | ||
|
||
<style name="left_cont" | ||
width="content"/> | ||
|
||
|
||
<button_error text="Default" align="center"/> | ||
<style name="right_cont" | ||
layout="flex" | ||
bg_opa="130" | ||
border_width="0" | ||
flex_flow="column" | ||
flex_track_place="center" | ||
flex_cross_place="center" | ||
pad_all="16" | ||
/> | ||
</styles> | ||
|
||
<view extends="lv_obj" styles="main"> | ||
<lv_obj styles="cont left_cont"> | ||
<slider_box/> | ||
<slider_box/> | ||
<slider_box/> | ||
</lv_obj> | ||
|
||
<lv_obj styles="cont right_cont" flex_grow="1"> | ||
<button_default text="First button"/> | ||
<button_default text="Second button"/> | ||
<dark_slider width="100" height="15" color="0xff0000"/> | ||
<button_warning text="Third button"/> | ||
<button_warning text="Forth button"/> | ||
<button_error text="Fifth button"/> | ||
<button_error text="Sixth button"/> | ||
</lv_obj> | ||
</view> | ||
</component> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
<widget> | ||
<api> | ||
<prop name="color" type="color"/> | ||
</api> | ||
|
||
<styles> | ||
<style name="main" | ||
bg_color="0x333333" bg_opa="255" | ||
border_width="2" border_color="0xaaaaaa" | ||
radius="100" | ||
width="120" | ||
pad_all="3"/> | ||
height="16" | ||
pad_all="4"/> | ||
<style name="light_knob" | ||
bg_color="0xeeeeee" bg_opa="255" | ||
border_width="2" border_color="0xaaaaaa" pad_all="10"/> | ||
border_width="2" radius="100" border_color="0xaaaaaa" pad_all="5"/> | ||
<style name="blue_indicator" | ||
bg_color="0x0000ff" bg_opa="255"/> | ||
bg_color="0x0000ff" bg_opa="255" | ||
radius="100"/> | ||
</styles> | ||
<view extends="lv_slider" | ||
styles="main light_knob:knob blue_indicator:indicator" | ||
align="center"> | ||
align="center" value="30" range="20 40"> | ||
</view> | ||
</widget> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.