new layout system, new UI state/styles system

This commit is contained in:
Eduardo Bart
2011-08-26 12:06:52 -03:00
parent d31d32bf82
commit 7359370251
57 changed files with 1097 additions and 1099 deletions

View File

@@ -0,0 +1,19 @@
Button < UIButton
font: helvetica-11px-bold
color: #f0ad4dff
size: 106 24
border-image:
source: /core_ui/images/button.png
border: 5
state.hover:
border-image:
source: /core_ui/images/button_hover.png
border: 5
state.pressed:
text-translate: 1 1
border-image:
source: /core_ui/images/button_down.png
border: 5

View File

@@ -0,0 +1,8 @@
Label < UILabel
font: helvetica-12px
color: #ffffff
LargerLabel < Label
font: helvetica-12px-bold
color: #ffffff

View File

@@ -0,0 +1,8 @@
LineEdit < UILineEdit
font: helvetica-12px
size: 86 20
text-margin: 3
border-image:
source: /core_ui/images/panel_flat.png
border: 1

View File

@@ -0,0 +1,5 @@
TextList < UIWidget
size: 200 200
border-image:
source: /core_ui/images/panel_flat.png
border: 4

View File

@@ -0,0 +1,15 @@
Panel < UIWidget
FlatPanel < Panel
border-image:
source: /core_ui/images/panel_flat.png
border: 4
RoundedPanel < Panel
color: #ffffffc0
border-image:
source: /core_ui/images/panel_rounded.png
border: 4
RectPanel < UIWidget
image: /core_ui/images/empty_rect.png

View File

@@ -0,0 +1,5 @@
HorizontalSeparator < UIWidget
border-image:
source: /core_ui/images/horizontal_separator.png
border.top: 2
height: 2

View File

@@ -0,0 +1,26 @@
Window < UIWindow
font: helvetica-12px-bold
size: 200 200
opacity: 255
background-color: #ffffff
head:
height: 20
border-image:
source: /core_ui/images/window.png
size: 256 19
border: 4
border.bottom: 3
body:
border-image:
source: /core_ui/images/window.png
size: 256 237
offset: 0 19
border: 4
border.top: 0
state.pressed:
opacity: 192
MainWindow < Window
anchors.centerIn: parent