10-scrollbars.otui

main 109 lines · 2.2 KB Raw
Alex Alex Commit Client Upload Part 1 19/10/2026 00:04
1ScrollBarSlider < UIButton
2 id: sliderButton
3 anchors.centerIn: parent
4 size: 13 17
5 image-source: /images/ui/scrollbar
6 image-clip: 0 26 13 13
7 image-border: 2
8 image-color: #ffffffff
9 $hover:
10 image-clip: 13 26 13 13
11 $pressed:
12 image-clip: 26 26 13 13
13 $disabled:
14 image-color: #ffffff66
15
16ScrollBarValueLabel < Label
17 id: valueLabel
18 anchors.fill: parent
19 color: white
20 text-align: center
21
22VerticalScrollBar < UIScrollBar
23 orientation: vertical
24 width: 13
25 height: 39
26 image-source: /images/ui/scrollbar
27 image-clip: 39 0 13 65
28 image-border: 1
29 pixels-scroll: true
30
31 UIButton
32 id: decrementButton
33 anchors.top: parent.top
34 anchors.left: parent.left
35 image-source: /images/ui/scrollbar
36 image-clip: 0 0 13 13
37 image-color: #ffffffff
38 size: 13 13
39 $hover:
40 image-clip: 13 0 13 13
41 $pressed:
42 image-clip: 26 0 13 13
43 $disabled:
44 image-color: #ffffff66
45
46 UIButton
47 id: incrementButton
48 anchors.bottom: parent.bottom
49 anchors.right: parent.right
50 size: 13 13
51 image-source: /images/ui/scrollbar
52 image-clip: 0 13 13 13
53 image-color: #ffffffff
54 $hover:
55 image-clip: 13 13 13 13
56 $pressed:
57 image-clip: 26 13 13 13
58 $disabled:
59 image-color: #ffffff66
60
61 ScrollBarSlider
62
63 ScrollBarValueLabel
64
65HorizontalScrollBar < UIScrollBar
66 orientation: horizontal
67 height: 13
68 width: 39
69 image-source: /images/ui/scrollbar
70 image-clip: 0 65 52 13
71 image-border: 1
72
73 $disabled:
74 color: #bbbbbb88
75
76 UIButton
77 id: decrementButton
78 anchors.top: parent.top
79 anchors.left: parent.left
80 image-source: /images/ui/scrollbar
81 image-clip: 0 39 13 13
82 image-color: #ffffffff
83 size: 13 13
84 $hover:
85 image-clip: 13 39 13 13
86 $pressed:
87 image-clip: 26 39 13 13
88 $disabled:
89 image-color: #ffffff66
90
91 UIButton
92 id: incrementButton
93 anchors.bottom: parent.bottom
94 anchors.right: parent.right
95 size: 13 13
96 image-source: /images/ui/scrollbar
97 image-clip: 0 52 13 13
98 image-color: #ffffffff
99 $hover:
100 image-clip: 13 52 13 13
101 $pressed:
102 image-clip: 26 52 13 13
103 $disabled:
104 image-color: #ffffff66
105
106 ScrollBarSlider
107
108 ScrollBarValueLabel
109
Top