merge total remake
19
modules/core_ui/buttons.otui
Normal file
@@ -0,0 +1,19 @@
|
||||
Button < UIButton
|
||||
font: helvetica-11px-bold
|
||||
color: 240 173 77 255
|
||||
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.down:
|
||||
text-translate: 1 1
|
||||
border-image:
|
||||
source: /core_ui/images/button_down.png
|
||||
border: 5
|
||||
|
18
modules/core_ui/core_ui.otmod
Normal file
@@ -0,0 +1,18 @@
|
||||
Module
|
||||
name: core_ui
|
||||
description: Contains ui styles used by other modules
|
||||
author: OTClient team
|
||||
website: https://github.com/edubart/otclient
|
||||
version: 0.2
|
||||
autoLoad: true
|
||||
dependencies:
|
||||
- core_fonts
|
||||
onLoad: |
|
||||
importStyles('buttons.otui')
|
||||
importStyles('labels.otui')
|
||||
importStyles('panels.otui')
|
||||
importStyles('separators.otui')
|
||||
importStyles('lineedits.otui')
|
||||
importStyles('windows.otui')
|
||||
return true
|
||||
|
BIN
modules/core_ui/images/button.png
Normal file
After Width: | Height: | Size: 825 B |
BIN
modules/core_ui/images/button_down.png
Normal file
After Width: | Height: | Size: 833 B |
BIN
modules/core_ui/images/button_hover.png
Normal file
After Width: | Height: | Size: 859 B |
BIN
modules/core_ui/images/container_bg.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
modules/core_ui/images/horizontal_separator.png
Normal file
After Width: | Height: | Size: 151 B |
BIN
modules/core_ui/images/horizotal_separator.png
Normal file
After Width: | Height: | Size: 152 B |
BIN
modules/core_ui/images/panel_flat.png
Normal file
After Width: | Height: | Size: 179 B |
BIN
modules/core_ui/images/panel_rounded.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
modules/core_ui/images/window.png
Normal file
After Width: | Height: | Size: 35 KiB |
5
modules/core_ui/labels.otui
Normal file
@@ -0,0 +1,5 @@
|
||||
Label < UILabel
|
||||
|
||||
LargerLabel < Label
|
||||
font: helvetica-12px-bold
|
||||
|
7
modules/core_ui/lineedits.otui
Normal file
@@ -0,0 +1,7 @@
|
||||
LineEdit < UILineEdit
|
||||
size: 86 20
|
||||
text-margin: 3
|
||||
border-image:
|
||||
source: /core_ui/images/panel_flat.png
|
||||
border: 1
|
||||
|
11
modules/core_ui/panels.otui
Normal file
@@ -0,0 +1,11 @@
|
||||
Panel < UIWidget
|
||||
|
||||
FlatPanel < Panel
|
||||
border-image:
|
||||
source: /core_ui/images/panel_flat.png
|
||||
border: 4
|
||||
|
||||
RoundedGridPanel < Panel
|
||||
border-image:
|
||||
source: /core_ui/images/panel_rounded.png
|
||||
border: 4
|
4
modules/core_ui/separators.otui
Normal file
@@ -0,0 +1,4 @@
|
||||
HorizontalSeparator < UIWidget
|
||||
border-image:
|
||||
source: /core_ui/images/horizontal_separator.png
|
||||
border.top: 2
|
20
modules/core_ui/windows.otui
Normal file
@@ -0,0 +1,20 @@
|
||||
Window < UIWindow
|
||||
size: 200 100
|
||||
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
|
||||
|
||||
MainWindow < Window
|
||||
anchors.centerIn: parent
|