channelswindow.otui

main 87 lines · 1.8 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1ChannelListLabel < Label
2 font: verdana-11px-monochrome
3 background-color: alpha
4 text-offset: 2 0
5 focusable: true
6 color: #ffffff
7
8 $focus:
9 background-color: #ffffff22
10 color: #ffffff
11
12MainWindow
13 id: channelsWindow
14 !text: tr('Channels')
15 size: 200 300
16 @onEscape: self:destroy()
17 background-color: #2e2e2e
18 border-width: 2
19 border-color: #1e1e1e
20 padding: 10
21
22 TextList
23 id: channelList
24 vertical-scrollbar: channelsScrollBar
25 anchors.fill: parent
26 anchors.bottom: next.top
27 margin-bottom: 10
28 padding: 1
29 focusable: false
30 background-color: #3e3e3e
31 border-width: 1
32 border-color: #1e1e1e
33
34 Label
35 id: openPrivateChannelWithLabel
36 !text: tr('Open a private message channel:')
37 anchors.left: parent.left
38 anchors.right: parent.right
39 anchors.bottom: next.top
40 text-align: center
41 margin-bottom: 2
42 color: #ffffff
43
44 TextEdit
45 id: openPrivateChannelWith
46 anchors.left: parent.left
47 anchors.right: parent.right
48 anchors.bottom: next.top
49 margin-bottom: 10
50 background-color: #3e3e3e
51 border-width: 1
52 border-color: #1e1e1e
53 color: #ffffff
54
55 Button
56 id: buttonOpen
57 !text: tr('Open')
58 width: 64
59 anchors.right: next.left
60 anchors.bottom: parent.bottom
61 margin-right: 10
62 @onClick: self:getParent():onEnter()
63 background-color: #4e4e4e
64 border-width: 1
65 border-color: #1e1e1e
66 color: #ffffff
67
68 Button
69 id: buttonCancel
70 !text: tr('Cancel')
71 width: 64
72 anchors.right: parent.right
73 anchors.bottom: parent.bottom
74 @onClick: self:getParent():destroy()
75 background-color: #4e4e4e
76 border-width: 1
77 border-color: #1e1e1e
78 color: #ffffff
79
80 VerticalScrollBar
81 id: channelsScrollBar
82 anchors.top: channelList.top
83 anchors.bottom: channelList.bottom
84 anchors.right: channelList.right
85 step: 14
86 pixels-scroll: true
87
Top