-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCStyle.Style
More file actions
48 lines (38 loc) · 1.16 KB
/
CStyle.Style
File metadata and controls
48 lines (38 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
-- Initialize required functions
if not ImVec2 then
function ImVec2(x, y)
return {x = x, y = y}
end
end
if not ImVec4 then
function ImVec4(x, y, z, w)
return {x = x, y = y, z = z, w = w}
end
end
-- Initialize style table if it doesn't exist
if not style then
style = {}
end
-- Initialize the color table if it doesn't exist
if not style.Colors then
style.Colors = {}
end
local colors = style.Colors
-- Set the rounding of window corners
style.WindowRounding = 10.0
-- Set the frame rounding and padding
style.FrameRounding = 4.0
style.FramePadding = ImVec2(4, 2)
-- Set the window background color to a dark gray
colors[1] = ImVec4(0.1, 0.1, 0.1, 1.0) -- WindowBg
-- Set the title bar background color (active window)
colors[2] = ImVec4(0.1, 0.1, 0.1, 1.0) -- TitleBgActive
-- Set scrollbar colors
colors[12] = ImVec4(0.2, 0.2, 0.2, 1.0) -- ScrollbarBg
colors[13] = ImVec4(0.4, 0.4, 0.4, 1.0) -- ScrollbarGrab
colors[14] = ImVec4(0.5, 0.5, 0.5, 1.0) -- ScrollbarGrabHovered
colors[15] = ImVec4(0.6, 0.6, 0.6, 1.0) -- ScrollbarGrabActive
-- Set text color
colors[16] = ImVec4(0.9, 0.9, 0.9, 1.0) -- Text
-- Update the style
setStyle()