reorganize modules

This commit is contained in:
Eduardo Bart
2011-11-02 01:02:56 -02:00
parent 2304ff3529
commit 5ab0e6f2ac
59 changed files with 147 additions and 208 deletions

View File

@@ -0,0 +1,17 @@
Module
name: core_styles
description: Contains ui styles used by other modules
author: OTClient team
website: https://github.com/edubart/otclient
dependencies:
- core_fonts
onLoad: |
importStyles 'styles/buttons.otui'
importStyles 'styles/labels.otui'
importStyles 'styles/panels.otui'
importStyles 'styles/separators.otui'
importStyles 'styles/lineedits.otui'
importStyles 'styles/windows.otui'
importStyles 'styles/listboxes.otui'
return true

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -0,0 +1,51 @@
Button < UIButton
font: verdana-11px-antialised
background-color: white
color: #f0ad4dff
size: 106 24
text-translate: 0 0
border-image:
source: /core_styles/images/button.png
border: 5
state.hover:
border-image:
source: /core_styles/images/button_hover.png
border: 5
state.pressed:
text-translate: 1 1
border-image:
source: /core_styles/images/button_down.png
border: 5
state.disabled:
color: #999999
background-color: #ffffff88
TopButton < UIButton
background-color: white
size: 26 25
text-translate: 0 0
border-image:
source: /core_styles/images/top_button.png
size: 26 25
border: 3
state.hover:
border-image:
source: /core_styles/images/top_button.png
size: 26 25
offset: 26 0
border: 3
state.pressed:
text-translate: 1 1
border-image:
source: /core_styles/images/top_button.png
size: 26 25
offset: 52 0
border: 3
state.disabled:
background-color: #ffffff66

View File

@@ -0,0 +1,6 @@
Label < UILabel
font: verdana-11px-antialised
color: #aaaaaa
LargerLabel < Label

View File

@@ -0,0 +1,11 @@
LineEdit < UILineEdit
font: verdana-11px-antialised
color: #aaaaaa
size: 86 20
text margin: 3
border-image:
source: /core_styles/images/panel_flat.png
border: 1
PasswordLineEdit < LineEdit
text hidden: true

View File

@@ -0,0 +1,5 @@
TextList < UIWidget
layout: verticalBox
border-image:
source: /core_styles/images/panel_flat.png
border: 4

View File

@@ -0,0 +1,23 @@
Panel < UIWidget
phantom: true
FlatPanel < Panel
border-image:
source: /core_styles/images/panel_flat.png
border: 4
TopPanel < Panel
height: 34
image:
source: /core_styles/images/top_panel.png
repeated: true
RoundedPanel < Panel
background-color: #ffffffdd
border-image:
source: /core_styles/images/panel_rounded.png
border: 4
RectPanel < UIWidget
image: /core_styles/images/empty_rect.png

View File

@@ -0,0 +1,6 @@
HorizontalSeparator < UIWidget
border-image:
source: /core_styles/images/horizontal_separator.png
border.top: 2
height: 2
phantom: true

View File

@@ -0,0 +1,17 @@
Window < UIWindow
font: verdana-11px-antialised
size: 200 200
opacity: 255
background-color: white
head height: 20
head text align: center
border-image:
source: /core_styles/images/window.png
border: 4
border.top: 20
state.pressed:
opacity: 192
MainWindow < Window
anchors.centerIn: parent