mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
new layout system, new UI state/styles system
This commit is contained in:
19
modules/core_ui/styles/buttons.otui
Normal file
19
modules/core_ui/styles/buttons.otui
Normal 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
|
||||
|
8
modules/core_ui/styles/labels.otui
Normal file
8
modules/core_ui/styles/labels.otui
Normal file
@@ -0,0 +1,8 @@
|
||||
Label < UILabel
|
||||
font: helvetica-12px
|
||||
color: #ffffff
|
||||
|
||||
LargerLabel < Label
|
||||
font: helvetica-12px-bold
|
||||
color: #ffffff
|
||||
|
8
modules/core_ui/styles/lineedits.otui
Normal file
8
modules/core_ui/styles/lineedits.otui
Normal 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
|
||||
|
5
modules/core_ui/styles/listboxes.otui
Normal file
5
modules/core_ui/styles/listboxes.otui
Normal file
@@ -0,0 +1,5 @@
|
||||
TextList < UIWidget
|
||||
size: 200 200
|
||||
border-image:
|
||||
source: /core_ui/images/panel_flat.png
|
||||
border: 4
|
15
modules/core_ui/styles/panels.otui
Normal file
15
modules/core_ui/styles/panels.otui
Normal 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
|
5
modules/core_ui/styles/separators.otui
Normal file
5
modules/core_ui/styles/separators.otui
Normal file
@@ -0,0 +1,5 @@
|
||||
HorizontalSeparator < UIWidget
|
||||
border-image:
|
||||
source: /core_ui/images/horizontal_separator.png
|
||||
border.top: 2
|
||||
height: 2
|
26
modules/core_ui/styles/windows.otui
Normal file
26
modules/core_ui/styles/windows.otui
Normal 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
|
Reference in New Issue
Block a user