Информация Стили/Темы для ImGUI

Cosmo

Известный
Друг
653
2,724
Более менее адекватно-выглядящая белая тема

Lua:
function white_style()
    imgui.SwitchContext()
    imgui.GetStyle().WindowRounding        = 7.0
    imgui.GetStyle().ChildRounding        = 7.0
    imgui.GetStyle().FrameRounding        = 10.0
    imgui.GetStyle().FramePadding        = imgui.ImVec2(5, 3)
    imgui.GetStyle().WindowPadding        = imgui.ImVec2(8, 8)
    imgui.GetStyle().ButtonTextAlign    = imgui.ImVec2(0.5, 0.5)
    imgui.GetStyle().GrabMinSize        = 7
    imgui.GetStyle().GrabRounding        = 15

    imgui.GetStyle().Colors[imgui.Col.Text]                    = imgui.ImVec4(1.00, 1.00, 1.00, 1.00)
    imgui.GetStyle().Colors[imgui.Col.TextDisabled]            = imgui.ImVec4(1.00, 1.00, 1.00, 0.20)
    imgui.GetStyle().Colors[imgui.Col.WindowBg]                = imgui.ImVec4(0.07, 0.07, 0.09, 1.00)
    imgui.GetStyle().Colors[imgui.Col.PopupBg]                = imgui.ImVec4(0.90, 0.90, 0.90, 1.00)
    imgui.GetStyle().Colors[imgui.Col.Border]                = imgui.ImVec4(0.00, 0.00, 0.00, 0.00)
    imgui.GetStyle().Colors[imgui.Col.SliderGrab]            = imgui.ImVec4(0.90, 0.90, 0.90, 1.00)
    imgui.GetStyle().Colors[imgui.Col.SliderGrabActive]        = imgui.ImVec4(0.70, 0.70, 0.70, 1.00)
    imgui.GetStyle().Colors[imgui.Col.BorderShadow]            = imgui.ImVec4(0.00, 0.00, 0.00, 0.00)
    imgui.GetStyle().Colors[imgui.Col.ScrollbarBg]            = imgui.ImVec4(0.60, 0.60, 0.60, 0.90)
    imgui.GetStyle().Colors[imgui.Col.ScrollbarGrab]        = imgui.ImVec4(0.90, 0.90, 0.90, 1.00)
    imgui.GetStyle().Colors[imgui.Col.ScrollbarGrabHovered]    = imgui.ImVec4(0.80, 0.80, 0.80, 1.00)
    imgui.GetStyle().Colors[imgui.Col.ScrollbarGrabActive]    = imgui.ImVec4(0.70, 0.70, 0.70, 1.00)
    imgui.GetStyle().Colors[imgui.Col.FrameBg]                = imgui.ImVec4(0.20, 0.20, 0.20, 1.00)
    imgui.GetStyle().Colors[imgui.Col.FrameBgHovered]        = imgui.ImVec4(0.20, 0.20, 0.20, 0.80)
    imgui.GetStyle().Colors[imgui.Col.FrameBgActive]        = imgui.ImVec4(0.20, 0.20, 0.20, 0.60)
    imgui.GetStyle().Colors[imgui.Col.CheckMark]            = imgui.ImVec4(1.00, 1.00, 1.00, 1.00)
    imgui.GetStyle().Colors[imgui.Col.Button]                = imgui.ImVec4(0.20, 0.20, 0.20, 1.00)
    imgui.GetStyle().Colors[imgui.Col.ButtonHovered]        = imgui.ImVec4(0.15, 0.15, 0.15, 1.00)
    imgui.GetStyle().Colors[imgui.Col.ButtonActive]            = imgui.ImVec4(0.10, 0.10, 0.10, 1.00)
    imgui.GetStyle().Colors[imgui.Col.TextSelectedBg]        = imgui.ImVec4(0.80, 0.80, 0.80, 0.80)

    local but_orig = imgui.Button
    imgui.Button = function(...)
        imgui.PushStyleColor(imgui.Col.Text, imgui.ImVec4(0.07, 0.07, 0.09, 1.00))
        imgui.PushStyleColor(imgui.Col.Button, imgui.ImVec4(0.90, 0.90, 0.90, 1.00))
        imgui.PushStyleColor(imgui.Col.ButtonHovered, imgui.ImVec4(0.80, 0.80, 0.80, 1.00))
        imgui.PushStyleColor(imgui.Col.ButtonActive, imgui.ImVec4(0.70, 0.70, 0.70, 1.00))
        local result = but_orig(...)
        imgui.PopStyleColor(4)
        return result
    end
end
1611245144846.png
 
Последнее редактирование:

Mico

Активный
251
48

Голубой (Бирюзовой, назвать можно хоть как :D) стиль на основе Приятной серой темы.

[ВОЗМОЖНО]: Возможно это последний стиль на основе «Приятная серая тема», я не знаю, почему раньше не написал, но идея по поводу изменению данной темы была не моя :D - Спасибо Darkjer :)

1611740978920.png

Code theme:
                colors[clr.Text]                 = ImVec4(0.86, 0.93, 0.89, 0.78)
                colors[clr.TextDisabled]         = ImVec4(0.36, 0.42, 0.47, 1.00)
                colors[clr.WindowBg]             = ImVec4(0.11, 0.15, 0.17, 1.00)
                colors[clr.ChildWindowBg]        = ImVec4(0.15, 0.18, 0.22, 1.00)
                colors[clr.PopupBg]              = ImVec4(0.08, 0.08, 0.08, 0.94)
                colors[clr.Border]               = ImVec4(0.43, 0.43, 0.50, 0.50)
                colors[clr.BorderShadow]         = ImVec4(0.00, 0.00, 0.00, 0.00)
                colors[clr.FrameBg]              = ImVec4(0.20, 0.25, 0.29, 1.00)
                colors[clr.FrameBgHovered]       = ImVec4(0.12, 0.20, 0.28, 1.00)
                colors[clr.FrameBgActive]        = ImVec4(0.09, 0.12, 0.14, 1.00)
                colors[clr.TitleBg]                = ImVec4(0.04, 0.04, 0.04, 1.00)
                colors[clr.TitleBgActive]          = ImVec4(0.16, 0.48, 0.42, 1.00)
                colors[clr.TitleBgCollapsed]       = ImVec4(0.00, 0.00, 0.00, 0.51)
                colors[clr.MenuBarBg]            = ImVec4(0.15, 0.18, 0.22, 1.00)
                colors[clr.ScrollbarBg]          = ImVec4(0.02, 0.02, 0.02, 0.39)
                colors[clr.ScrollbarGrab]        = ImVec4(0.20, 0.25, 0.29, 1.00)
                colors[clr.ScrollbarGrabHovered] = ImVec4(0.18, 0.22, 0.25, 1.00)
                colors[clr.ScrollbarGrabActive]  = ImVec4(0.09, 0.21, 0.31, 1.00)
                colors[clr.ComboBg]                = colors[clr.PopupBg]
                colors[clr.CheckMark]              = ImVec4(0.26, 0.98, 0.85, 1.00)
                colors[clr.SliderGrab]             = ImVec4(0.24, 0.88, 0.77, 1.00)
                colors[clr.SliderGrabActive]       = ImVec4(0.26, 0.98, 0.85, 1.00)
                colors[clr.Button]                 = ImVec4(0.26, 0.98, 0.85, 0.30)
                colors[clr.ButtonHovered]          = ImVec4(0.26, 0.98, 0.85, 0.50)
                colors[clr.ButtonActive]           = ImVec4(0.06, 0.98, 0.82, 0.50)
                colors[clr.Header]                 = ImVec4(0.26, 0.98, 0.85, 0.31)
                colors[clr.HeaderHovered]          = ImVec4(0.26, 0.98, 0.85, 0.80)
                colors[clr.HeaderActive]           = ImVec4(0.26, 0.98, 0.85, 1.00)
                colors[clr.Separator]            = ImVec4(0.50, 0.50, 0.50, 1.00)
                colors[clr.SeparatorHovered]     = ImVec4(0.60, 0.60, 0.70, 1.00)
                colors[clr.SeparatorActive]      = ImVec4(0.70, 0.70, 0.90, 1.00)
                colors[clr.ResizeGrip]           = ImVec4(0.26, 0.59, 0.98, 0.25)
                colors[clr.ResizeGripHovered]    = ImVec4(0.26, 0.59, 0.98, 0.67)
                colors[clr.ResizeGripActive]     = ImVec4(0.06, 0.05, 0.07, 1.00)
                colors[clr.CloseButton]          = ImVec4(0.40, 0.39, 0.38, 0.16)
                colors[clr.CloseButtonHovered]   = ImVec4(0.40, 0.39, 0.38, 0.39)
                colors[clr.CloseButtonActive]    = ImVec4(0.40, 0.39, 0.38, 1.00)
                colors[clr.PlotLines]            = ImVec4(0.61, 0.61, 0.61, 1.00)
                colors[clr.PlotLinesHovered]     = ImVec4(1.00, 0.43, 0.35, 1.00)
                colors[clr.PlotHistogram]        = ImVec4(0.90, 0.70, 0.00, 1.00)
                colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
                colors[clr.TextSelectedBg]       = ImVec4(0.25, 1.00, 0.00, 0.43)
                colors[clr.ModalWindowDarkening] = ImVec4(1.00, 0.98, 0.95, 0.73)

p.s: Text и TextDisabled подстроены под мои настройки :) вы может их поменять.
 

Mico

Активный
251
48
Это последняя тема на основе «Приятная серая тема», поскольку идей какой её можно сделать ещё уже нет (есть, но...).

Представляю Вашему вниманию «Фиолетовая тема на основа Приятной серой темы».
1612503141747.png


Code theme:
colors[clr.Text]                 = ImVec4(0.86, 0.93, 0.89, 0.78)
            colors[clr.TextDisabled]         = ImVec4(0.36, 0.42, 0.47, 1.00)
            colors[clr.WindowBg]             = ImVec4(0.11, 0.15, 0.17, 1.00)
            colors[clr.ChildWindowBg]        = ImVec4(0.15, 0.18, 0.22, 1.00)
            colors[clr.PopupBg]              = ImVec4(0.08, 0.08, 0.08, 0.94)
            colors[clr.Border]               = ImVec4(0.43, 0.43, 0.50, 0.50)
            colors[clr.BorderShadow]         = ImVec4(0.00, 0.00, 0.00, 0.00)
            colors[clr.FrameBg]              = ImVec4(0.20, 0.25, 0.29, 1.00)
            colors[clr.FrameBgHovered]       = ImVec4(0.19, 0.12, 0.28, 1.00)
            colors[clr.FrameBgActive]        = ImVec4(0.09, 0.12, 0.14, 1.00)
            colors[clr.TitleBg]              = ImVec4(0.04, 0.04, 0.04, 1.00)
            colors[clr.TitleBgActive]        = ImVec4(0.41, 0.19, 0.63, 1.00)
            colors[clr.TitleBgCollapsed]     = ImVec4(0.00, 0.00, 0.00, 0.51)
            colors[clr.MenuBarBg]            = ImVec4(0.15, 0.18, 0.22, 1.00)
            colors[clr.ScrollbarBg]          = ImVec4(0.02, 0.02, 0.02, 0.39)
            colors[clr.ScrollbarGrab]        = ImVec4(0.20, 0.25, 0.29, 1.00)
            colors[clr.ScrollbarGrabHovered] = ImVec4(0.18, 0.22, 0.25, 1.00)
            colors[clr.ScrollbarGrabActive]  = ImVec4(0.20, 0.09, 0.31, 1.00)
            colors[clr.ComboBg]              = ImVec4(0.20, 0.25, 0.29, 1.00)
            colors[clr.CheckMark]            = ImVec4(0.59, 0.28, 1.00, 1.00)
            colors[clr.SliderGrab]           = ImVec4(0.41, 0.19, 0.63, 1.00)
            colors[clr.SliderGrabActive]     = ImVec4(0.41, 0.19, 0.63, 1.00)
            colors[clr.Button]               = ImVec4(0.41, 0.19, 0.63, 0.44)
            colors[clr.ButtonHovered]        = ImVec4(0.41, 0.19, 0.63, 0.86)
            colors[clr.ButtonActive]         = ImVec4(0.64, 0.33, 0.94, 1.00)
            colors[clr.Header]               = ImVec4(0.20, 0.25, 0.29, 0.55)
            colors[clr.HeaderHovered]        = ImVec4(0.51, 0.26, 0.98, 0.80)
            colors[clr.HeaderActive]         = ImVec4(0.53, 0.26, 0.98, 1.00)
            colors[clr.Separator]            = ImVec4(0.50, 0.50, 0.50, 1.00)
            colors[clr.SeparatorHovered]     = ImVec4(0.60, 0.60, 0.70, 1.00)
            colors[clr.SeparatorActive]      = ImVec4(0.70, 0.70, 0.90, 1.00)
            colors[clr.ResizeGrip]           = ImVec4(0.59, 0.26, 0.98, 0.25)
            colors[clr.ResizeGripHovered]    = ImVec4(0.61, 0.26, 0.98, 0.67)
            colors[clr.ResizeGripActive]     = ImVec4(0.06, 0.05, 0.07, 1.00)
            colors[clr.CloseButton]          = ImVec4(0.40, 0.39, 0.38, 0.16)
            colors[clr.CloseButtonHovered]   = ImVec4(0.40, 0.39, 0.38, 0.39)
            colors[clr.CloseButtonActive]    = ImVec4(0.40, 0.39, 0.38, 1.00)
            colors[clr.PlotLines]            = ImVec4(0.61, 0.61, 0.61, 1.00)
            colors[clr.PlotLinesHovered]     = ImVec4(1.00, 0.43, 0.35, 1.00)
            colors[clr.PlotHistogram]        = ImVec4(0.90, 0.70, 0.00, 1.00)
            colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
            colors[clr.TextSelectedBg]       = ImVec4(0.25, 1.00, 0.00, 0.43)
            colors[clr.ModalWindowDarkening] = ImVec4(1.00, 0.98, 0.95, 0.73)
 

HarlyCloud

Потрачен
238
67
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Классная синяя тема.

Делал для себя, может быть кому то пригодится

Lua:
function bluetheme()
    imgui.SwitchContext()
    local colors = imgui.GetStyle().Colors;
    local icol = imgui.Col
    local ImVec4 = imgui.ImVec4

    imgui.GetStyle().WindowPadding = imgui.ImVec2(8, 8)
    imgui.GetStyle().WindowRounding = 16.0
    imgui.GetStyle().FramePadding = imgui.ImVec2(5, 3)
    imgui.GetStyle().ItemSpacing = imgui.ImVec2(4, 4)
    imgui.GetStyle().ItemInnerSpacing = imgui.ImVec2(5, 5)
    imgui.GetStyle().IndentSpacing = 9.0
    imgui.GetStyle().ScrollbarSize = 17.0
    imgui.GetStyle().ScrollbarRounding = 16.0
    imgui.GetStyle().GrabMinSize = 7.0
    imgui.GetStyle().GrabRounding = 6.0
    imgui.GetStyle().ChildWindowRounding = 6.0
    imgui.GetStyle().FrameRounding = 6.0

    colors[icol.Text]                   = ImVec4(0.90, 0.90, 0.90, 1.00);
    colors[icol.TextDisabled]           = ImVec4(0.60, 0.60, 0.60, 1.00);
    colors[icol.WindowBg]               = ImVec4(0.11, 0.11, 0.11, 1.00);
    colors[icol.ChildWindowBg]          = ImVec4(0.13, 0.13, 0.13, 1.00);
    colors[icol.PopupBg]                = ImVec4(0.11, 0.11, 0.11, 1.00);
    colors[icol.Border]                 = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.BorderShadow]           = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.FrameBg]                = ImVec4(0.26, 0.46, 0.82, 0.59);
    colors[icol.FrameBgHovered]         = ImVec4(0.26, 0.46, 0.82, 0.88);
    colors[icol.FrameBgActive]          = ImVec4(0.28, 0.53, 1.00, 1.00);
    colors[icol.TitleBg]                = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.TitleBgActive]          = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.TitleBgCollapsed]       = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.MenuBarBg]              = ImVec4(0.26, 0.46, 0.82, 0.75);
    colors[icol.ScrollbarBg]            = ImVec4(0.11, 0.11, 0.11, 1.00);
    colors[icol.ScrollbarGrab]          = ImVec4(0.26, 0.46, 0.82, 0.68);
    colors[icol.ScrollbarGrabHovered]   = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.ScrollbarGrabActive]    = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.ComboBg]                = ImVec4(0.26, 0.46, 0.82, 0.79);
    colors[icol.CheckMark]              = ImVec4(1.000, 0.000, 0.000, 1.000)
    colors[icol.SliderGrab]             = ImVec4(0.263, 0.459, 0.824, 1.000)
    colors[icol.SliderGrabActive]       = ImVec4(0.66, 0.66, 0.66, 1.00);
    colors[icol.Button]                 = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.ButtonHovered]          = ImVec4(0.26, 0.46, 0.82, 0.59);
    colors[icol.ButtonActive]           = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.Header]                 = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.HeaderHovered]          = ImVec4(0.26, 0.46, 0.82, 0.74);
    colors[icol.HeaderActive]           = ImVec4(0.26, 0.46, 0.82, 1.00);
    colors[icol.Separator]              = ImVec4(0.37, 0.37, 0.37, 1.00);
    colors[icol.SeparatorHovered]       = ImVec4(0.60, 0.60, 0.70, 1.00);
    colors[icol.SeparatorActive]        = ImVec4(0.70, 0.70, 0.90, 1.00);
    colors[icol.ResizeGrip]             = ImVec4(1.00, 1.00, 1.00, 0.30);
    colors[icol.ResizeGripHovered]      = ImVec4(1.00, 1.00, 1.00, 0.60);
    colors[icol.ResizeGripActive]       = ImVec4(1.00, 1.00, 1.00, 0.90);
    colors[icol.CloseButton]            = ImVec4(0.00, 0.00, 0.00, 1.00);
    colors[icol.CloseButtonHovered]     = ImVec4(0.00, 0.00, 0.00, 0.60);
    colors[icol.CloseButtonActive]      = ImVec4(0.35, 0.35, 0.35, 1.00);
    colors[icol.PlotLines]              = ImVec4(1.00, 1.00, 1.00, 1.00);
    colors[icol.PlotLinesHovered]       = ImVec4(0.90, 0.70, 0.00, 1.00);
    colors[icol.PlotHistogram]          = ImVec4(0.90, 0.70, 0.00, 1.00);
    colors[icol.PlotHistogramHovered]   = ImVec4(1.00, 0.60, 0.00, 1.00);
    colors[icol.TextSelectedBg]         = ImVec4(0.00, 0.00, 1.00, 0.35);
    colors[icol.ModalWindowDarkening]   = ImVec4(0.20, 0.20, 0.20, 0.35);
end
bluetheme()

sa-mp-074.png
 

Sanchez.

Известный
705
188

Приятная синяя тема.​

-------------------------------------
Эту тему я использовал в моем скрипте для себя, решил поделиться с вами.
1621533214173.png
Lua:
function style() -- стиль имгуи
    imgui.SwitchContext()
    local style  = imgui.GetStyle()
    local colors = style.Colors
    local clr    = imgui.Col
    local ImVec4 = imgui.ImVec4
    local ImVec2 = imgui.ImVec2

    style.WindowPadding       = ImVec2(10, 10)
    style.WindowRounding      = 10
    style.ChildWindowRounding = 2
    style.FramePadding        = ImVec2(5, 4)
    style.FrameRounding       = 11
    style.ItemSpacing         = ImVec2(4, 4)
    style.TouchExtraPadding   = ImVec2(0, 0)
    style.IndentSpacing       = 21
    style.ScrollbarSize       = 16
    style.ScrollbarRounding   = 16
    style.GrabMinSize         = 11
    style.GrabRounding        = 16
    style.WindowTitleAlign    = ImVec2(0.5, 0.5)
    style.ButtonTextAlign     = ImVec2(0.5, 0.5)

    colors[clr.Text]                 = ImVec4(1.00, 1.00, 1.00, 1.00)
    colors[clr.TextDisabled]         = ImVec4(0.73, 0.75, 0.74, 1.00)
    colors[clr.WindowBg]             = ImVec4(0.09, 0.09, 0.09, 0.94)
    colors[clr.ChildWindowBg]        = ImVec4(10.00, 10.00, 10.00, 0.01)
    colors[clr.PopupBg]              = ImVec4(0.08, 0.08, 0.08, 0.94)
    colors[clr.Border]               = ImVec4(0.20, 0.20, 0.20, 0.50)
    colors[clr.BorderShadow]         = ImVec4(0.00, 0.00, 0.00, 0.00)
    colors[clr.FrameBg]              = ImVec4(0.00, 0.39, 1.00, 0.65)
    colors[clr.FrameBgHovered]       = ImVec4(0.11, 0.40, 0.69, 1.00)
    colors[clr.FrameBgActive]        = ImVec4(0.11, 0.40, 0.69, 1.00)
    colors[clr.TitleBg]              = ImVec4(0.00, 0.00, 0.00, 1.00)
    colors[clr.TitleBgActive]        = ImVec4(0.00, 0.24, 0.54, 1.00)
    colors[clr.TitleBgCollapsed]     = ImVec4(0.00, 0.22, 1.00, 0.67)
    colors[clr.MenuBarBg]            = ImVec4(0.08, 0.44, 1.00, 1.00)
    colors[clr.ScrollbarBg]          = ImVec4(0.02, 0.02, 0.02, 0.53)
    colors[clr.ScrollbarGrab]        = ImVec4(0.31, 0.31, 0.31, 1.00)
    colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
    colors[clr.ScrollbarGrabActive]  = ImVec4(0.51, 0.51, 0.51, 1.00)
    colors[clr.ComboBg]              = ImVec4(0.20, 0.20, 0.20, 0.99)
    colors[clr.CheckMark]            = ImVec4(1.00, 1.00, 1.00, 1.00)
    colors[clr.SliderGrab]           = ImVec4(0.34, 0.67, 1.00, 1.00)
    colors[clr.SliderGrabActive]     = ImVec4(0.84, 0.66, 0.66, 1.00)
    colors[clr.Button]               = ImVec4(0.00, 0.39, 1.00, 0.65)
    colors[clr.ButtonHovered]        = ImVec4(0.00, 0.64, 1.00, 0.65)
    colors[clr.ButtonActive]         = ImVec4(0.00, 0.53, 1.00, 0.50)
    colors[clr.Header]               = ImVec4(0.00, 0.62, 1.00, 0.54)
    colors[clr.HeaderHovered]        = ImVec4(0.00, 0.36, 1.00, 0.65)
    colors[clr.HeaderActive]         = ImVec4(0.00, 0.53, 1.00, 0.00)
    colors[clr.Separator]            = ImVec4(0.43, 0.43, 0.50, 0.50)
    colors[clr.SeparatorHovered]     = ImVec4(0.71, 0.39, 0.39, 0.54)
    colors[clr.SeparatorActive]      = ImVec4(0.71, 0.39, 0.39, 0.54)
    colors[clr.ResizeGrip]           = ImVec4(0.71, 0.39, 0.39, 0.54)
    colors[clr.ResizeGripHovered]    = ImVec4(0.84, 0.66, 0.66, 0.66)
    colors[clr.ResizeGripActive]     = ImVec4(0.84, 0.66, 0.66, 0.66)
    colors[clr.CloseButton]          = ImVec4(0.41, 0.41, 0.41, 1.00)
    colors[clr.CloseButtonHovered]   = ImVec4(0.98, 0.39, 0.36, 1.00)
    colors[clr.CloseButtonActive]    = ImVec4(0.98, 0.39, 0.36, 1.00)
    colors[clr.PlotLines]            = ImVec4(0.61, 0.61, 0.61, 1.00)
    colors[clr.PlotLinesHovered]     = ImVec4(1.00, 0.43, 0.35, 1.00)
    colors[clr.PlotHistogram]        = ImVec4(0.90, 0.70, 0.00, 1.00)
    colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
    colors[clr.TextSelectedBg]       = ImVec4(0.26, 0.59, 0.98, 0.35)
    colors[clr.ModalWindowDarkening] = ImVec4(0.80, 0.80, 0.80, 0.35)
end
style()
 

Miron Diamond

Известный
244
162

Графическая синяя тема.

a.k.a. Johnny Silverhand

sa-mp-477.png

sa-mp-473.png

sa-mp-474.png
Lua:
function hello_miron_diamond()
    imgui.SwitchContext()
    style = imgui.GetStyle()
    colors = style.Colors
    clr = imgui.Col
    ImVec4 = imgui.ImVec4
    ImVec2 = imgui.ImVec2
    style.FrameRounding = 3
    style.WindowTitleAlign = imgui.ImVec2(0.5, 0.5)
    style.ChildWindowRounding = 5
    style.ScrollbarSize = 0
    colors[clr.FrameBg]                = ImVec4(0.16, 0.29, 0.48, 0.54)
    colors[clr.FrameBgHovered]         = ImVec4(0.26, 0.59, 0.98, 0.40)
    colors[clr.FrameBgActive]          = ImVec4(0.26, 0.59, 0.98, 0.67)
    colors[clr.TitleBg]                = ImVec4(0.04, 0.04, 0.04, 1.00)
    colors[clr.TitleBgActive]          = ImVec4(0.16, 0.29, 0.48, 1.00)
    colors[clr.TitleBgCollapsed]       = ImVec4(0.00, 0.00, 0.00, 0.51)
    colors[clr.CheckMark]              = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.SliderGrab]             = ImVec4(0.24, 0.52, 0.88, 1.00)
    colors[clr.SliderGrabActive]       = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.Button]                 = ImVec4(0.26, 0.59, 0.98, 0.40)
    colors[clr.ButtonHovered]          = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.ButtonActive]           = ImVec4(0.06, 0.53, 0.98, 1.00)
    colors[clr.Header]                 = ImVec4(0.26, 0.59, 0.98, 0.31)
    colors[clr.HeaderHovered]          = ImVec4(0.26, 0.59, 0.98, 0.80)
    colors[clr.HeaderActive]           = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.Separator]              = colors[clr.Border]
    colors[clr.SeparatorHovered]       = ImVec4(0.26, 0.59, 0.98, 0.78)
    colors[clr.SeparatorActive]        = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.ResizeGrip]             = ImVec4(0.26, 0.59, 0.98, 0.25)
    colors[clr.ResizeGripHovered]      = ImVec4(0.26, 0.59, 0.98, 0.67)
    colors[clr.ResizeGripActive]       = ImVec4(0.26, 0.59, 0.98, 0.95)
    colors[clr.TextSelectedBg]         = ImVec4(0.26, 0.59, 0.98, 0.35)
    colors[clr.Text]                   = ImVec4(1.00, 1.00, 1.00, 1.00)
    colors[clr.TextDisabled]           = ImVec4(0.50, 0.50, 0.50, 1.00)
    colors[clr.WindowBg]               = ImVec4(0.06, 0.53, 0.98, 0.70)
    colors[clr.ChildWindowBg]          = ImVec4(0.00, 0.00, 0.00, 0.40)
    colors[clr.PopupBg]                = colors[clr.WindowBg]
    colors[clr.ComboBg]                = ImVec4(0.16, 0.29, 0.48, 1.00)
    colors[clr.Border]                 = ImVec4(0.43, 0.43, 0.50, 0.50)
    colors[clr.BorderShadow]           = ImVec4(0.00, 0.00, 0.00, 0.00)
    colors[clr.MenuBarBg]              = ImVec4(0.14, 0.14, 0.14, 1.00)
    colors[clr.ScrollbarBg]            = ImVec4(0.02, 0.02, 0.02, 0.53)
    colors[clr.ScrollbarGrab]          = ImVec4(0.31, 0.31, 0.31, 1.00)
    colors[clr.ScrollbarGrabHovered]   = ImVec4(0.41, 0.41, 0.41, 1.00)
    colors[clr.ScrollbarGrabActive]    = ImVec4(0.51, 0.51, 0.51, 1.00)
    colors[clr.CloseButton]            = ImVec4(0.41, 0.41, 0.41, 0.50)
    colors[clr.CloseButtonHovered]     = ImVec4(0.98, 0.39, 0.36, 1.00)
    colors[clr.CloseButtonActive]      = ImVec4(0.98, 0.39, 0.36, 1.00)
    colors[clr.PlotLines]              = ImVec4(0.61, 0.61, 0.61, 1.00)
    colors[clr.PlotLinesHovered]       = ImVec4(1.00, 0.43, 0.35, 1.00)
    colors[clr.PlotHistogram]          = ImVec4(0.90, 0.70, 0.00, 1.00)
    colors[clr.PlotHistogramHovered]   = ImVec4(1.00, 0.60, 0.00, 1.00)
    colors[clr.ModalWindowDarkening]   = ImVec4(0.80, 0.80, 0.80, 0.35)
end

hello_miron_diamond()
 

Shepi

Активный
178
37
Бело-жёлтая тема

sa-mp-305.png

Lua:
imgui.SwitchContext()
      local style  = imgui.GetStyle()
      local colors = style.Colors
      local clr    = imgui.Col
      local ImVec4 = imgui.ImVec4
      local ImVec2 = imgui.ImVec2

      style.WindowPadding       = ImVec2(1, 3)
      style.WindowRounding      = 9
      style.ChildWindowRounding = 14
      style.FramePadding        = ImVec2(5, 3)
      style.FrameRounding       = 11
      style.ItemSpacing         = ImVec2(15, 20)
      style.TouchExtraPadding   = ImVec2(10, 10)
      style.IndentSpacing       = 30
      style.ScrollbarSize       = 11
      style.ScrollbarRounding   = 16
      style.GrabMinSize         = 20
      style.GrabRounding        = 16
      style.WindowTitleAlign    = ImVec2(1, 0)
      style.ButtonTextAlign     = ImVec2(0, 1)

      colors[clr.Text]                 = ImVec4(0.00, 0.00, 0.00, 1.00)
      colors[clr.TextDisabled]         = ImVec4(1.00, 0.06, 0.00, 1.00)
      colors[clr.WindowBg]             = ImVec4(1.00, 0.99, 0.97, 0.81)
      colors[clr.ChildWindowBg]        = ImVec4(1.00, 0.03, 0.03, 0.00)
      colors[clr.PopupBg]              = ImVec4(1.00, 1.00, 1.00, 0.71)
      colors[clr.Border]               = ImVec4(0.00, 0.00, 0.00, 1.00)
      colors[clr.BorderShadow]         = ImVec4(0.00, 0.00, 0.00, 0.00)
      colors[clr.FrameBg]              = ImVec4(1.00, 0.76, 0.00, 0.63)
      colors[clr.FrameBgHovered]       = ImVec4(1.00, 0.76, 0.00, 0.63)
      colors[clr.FrameBgActive]        = ImVec4(1.00, 0.00, 0.00, 1.00)
      colors[clr.TitleBg]              = ImVec4(1.00, 0.78, 0.09, 0.63)
      colors[clr.TitleBgActive]        = ImVec4(1.00, 0.76, 0.00, 0.71)
      colors[clr.TitleBgCollapsed]     = ImVec4(1.00, 0.76, 0.00, 0.63)
      colors[clr.MenuBarBg]            = ImVec4(1.00, 0.76, 0.00, 0.63)
      colors[clr.ScrollbarBg]          = ImVec4(1.00, 0.75, 0.00, 0.63)
      colors[clr.ScrollbarGrab]        = ImVec4(0.40, 0.39, 0.34, 1.00)
      colors[clr.ScrollbarGrabHovered] = ImVec4(0.08, 0.08, 0.08, 1.00)
      colors[clr.ScrollbarGrabActive]  = ImVec4(0.02, 0.02, 0.02, 1.00)
      colors[clr.ComboBg]              = ImVec4(1.00, 0.76, 0.00, 0.63)
      colors[clr.CheckMark]            = ImVec4(0.06, 0.06, 0.06, 1.00)
      colors[clr.SliderGrab]           = ImVec4(1.00, 0.75, 0.00, 0.54)
      colors[clr.SliderGrabActive]     = ImVec4(1.00, 0.00, 0.00, 1.00)
    colors[clr.Button]               = ImVec4(1.00, 0.88, 0.00, 1.00)
    colors[clr.ButtonHovered]        = ImVec4(0.32, 1.00, 0.00, 1.00)
    colors[clr.ButtonActive]         = ImVec4(0.00, 1.00, 0.78, 1.00)

      colors[clr.Header]               = ImVec4(1.00, 0.76, 0.00, 1.00)
      colors[clr.HeaderHovered]        = ImVec4(1.00, 0.76, 0.00, 0.63)
      colors[clr.HeaderActive]         = ImVec4(1.00, 0.99, 0.04, 0.00)
      colors[clr.Separator]            = ImVec4(0.00, 0.06, 1.00, 1.00)
      colors[clr.SeparatorHovered]     = ImVec4(0.71, 0.39, 0.39, 0.54)
      colors[clr.SeparatorActive]      = ImVec4(0.71, 0.39, 0.39, 0.54)
      colors[clr.ResizeGrip]           = ImVec4(0.71, 0.39, 0.39, 0.54)
      colors[clr.ResizeGripHovered]    = ImVec4(0.84, 0.66, 0.66, 0.66)
      colors[clr.ResizeGripActive]     = ImVec4(0.84, 0.66, 0.66, 0.66)
      colors[clr.CloseButton]          = ImVec4(0.00, 0.00, 0.00, 1.00)
      colors[clr.CloseButtonHovered]   = ImVec4(0.98, 0.39, 0.36, 1.00)
      colors[clr.CloseButtonActive]    = ImVec4(0.98, 0.39, 0.36, 1.00)
      colors[clr.PlotLines]            = ImVec4(0.00, 0.01, 0.00, 1.00)
      colors[clr.PlotLinesHovered]     = ImVec4(1.00, 0.43, 0.35, 1.00)
      colors[clr.PlotHistogram]        = ImVec4(0.78, 0.61, 0.03, 1.00)
      colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
      colors[clr.TextSelectedBg]       = ImVec4(0.14, 0.14, 0.14, 0.35)
      colors[clr.ModalWindowDarkening] = ImVec4(0.18, 0.18, 0.18, 0.35)
 
Последнее редактирование:

chapo

чопа сребдс // @moujeek
Модератор
8,868
11,572
1631816403173.png
Lua:
function BH_theme()
    imgui.SwitchContext()
    local style = imgui.GetStyle()
    local colors = style.Colors
    local clr = imgui.Col
    local ImVec4 = imgui.ImVec4
    local ImVec2 = imgui.ImVec2
 
    style.WindowPadding = ImVec2(6, 4)
    style.WindowRounding = 5.0
    style.ChildWindowRounding = 5.0
    style.FramePadding = ImVec2(5, 2)
    style.FrameRounding = 5.0
    style.ItemSpacing = ImVec2(7, 5)
    style.ItemInnerSpacing = ImVec2(1, 1)
    style.TouchExtraPadding = ImVec2(0, 0)
    style.IndentSpacing = 6.0
    style.ScrollbarSize = 12.0
    style.ScrollbarRounding = 5.0
    style.GrabMinSize = 20.0
    style.GrabRounding = 2.0
    style.WindowTitleAlign = ImVec2(0.5, 0.5)

    colors[clr.Text]                   = ImVec4(1.00, 1.00, 1.00, 1.00)
    colors[clr.TextDisabled]           = ImVec4(0.28, 0.30, 0.35, 1.00)
    colors[clr.WindowBg]               = ImVec4(0.16, 0.18, 0.22, 1.00)
    colors[clr.ChildWindowBg]          = ImVec4(0.19, 0.22, 0.26, 1)
    colors[clr.PopupBg]                = ImVec4(0.05, 0.05, 0.10, 0.90)
    colors[clr.Border]                 = ImVec4(0.19, 0.22, 0.26, 1.00)
    colors[clr.BorderShadow]           = ImVec4(0.00, 0.00, 0.00, 0.00)
    colors[clr.FrameBg]                = ImVec4(0.19, 0.22, 0.26, 1.00)
    colors[clr.FrameBgHovered]         = ImVec4(0.22, 0.25, 0.30, 1.00)
    colors[clr.FrameBgActive]          = ImVec4(0.22, 0.25, 0.29, 1.00)
    colors[clr.TitleBg]                = ImVec4(0.19, 0.22, 0.26, 1.00)
    colors[clr.TitleBgActive]          = ImVec4(0.19, 0.22, 0.26, 1.00)
    colors[clr.TitleBgCollapsed]       = ImVec4(0.19, 0.22, 0.26, 0.59)
    colors[clr.MenuBarBg]              = ImVec4(0.19, 0.22, 0.26, 1.00)
    colors[clr.ScrollbarBg]            = ImVec4(0.20, 0.25, 0.30, 0.60)
    colors[clr.ScrollbarGrab]          = ImVec4(0.41, 0.55, 0.78, 1.00)
    colors[clr.ScrollbarGrabHovered]   = ImVec4(0.49, 0.63, 0.86, 1.00)
    colors[clr.ScrollbarGrabActive]    = ImVec4(0.49, 0.63, 0.86, 1.00)
    colors[clr.ComboBg]                = ImVec4(0.20, 0.20, 0.20, 0.99)
    colors[clr.CheckMark]              = ImVec4(0.90, 0.90, 0.90, 0.50)
    colors[clr.SliderGrab]             = ImVec4(1.00, 1.00, 1.00, 0.30)
    colors[clr.SliderGrabActive]       = ImVec4(0.80, 0.50, 0.50, 1.00)
    colors[clr.Button]                 = ImVec4(0.41, 0.55, 0.78, 1.00)
    colors[clr.ButtonHovered]          = ImVec4(0.49, 0.62, 0.85, 1.00)
    colors[clr.ButtonActive]           = ImVec4(0.49, 0.62, 0.85, 1.00)
    colors[clr.Header]                 = ImVec4(0.19, 0.22, 0.26, 1.00)
    colors[clr.HeaderHovered]          = ImVec4(0.22, 0.24, 0.28, 1.00)
    colors[clr.HeaderActive]           = ImVec4(0.22, 0.24, 0.28, 1.00)
    colors[clr.Separator]              = ImVec4(0.41, 0.55, 0.78, 1.00)
    colors[clr.SeparatorHovered]       = ImVec4(0.41, 0.55, 0.78, 1.00)
    colors[clr.SeparatorActive]        = ImVec4(0.41, 0.55, 0.78, 1.00)
    colors[clr.ResizeGrip]             = ImVec4(0.41, 0.55, 0.78, 1.00)
    colors[clr.ResizeGripHovered]      = ImVec4(0.49, 0.61, 0.83, 1.00)
    colors[clr.ResizeGripActive]       = ImVec4(0.49, 0.62, 0.83, 1.00)
    colors[clr.CloseButton]            = ImVec4(0.41, 0.55, 0.78, 1.00)
    colors[clr.CloseButtonHovered]     = ImVec4(0.50, 0.63, 0.84, 1.00)
    colors[clr.CloseButtonActive]      = ImVec4(0.41, 0.55, 0.78, 1.00)
    colors[clr.PlotLines]              = ImVec4(1.00, 1.00, 1.00, 1.00)
    colors[clr.PlotLinesHovered]       = ImVec4(0.90, 0.70, 0.00, 1.00)
    colors[clr.PlotHistogram]          = ImVec4(0.90, 0.70, 0.00, 1.00)
    colors[clr.PlotHistogramHovered]   = ImVec4(1.00, 0.60, 0.00, 1.00)
    colors[clr.TextSelectedBg]         = ImVec4(0.41, 0.55, 0.78, 1.00)
    colors[clr.ModalWindowDarkening]   = ImVec4(0.16, 0.18, 0.22, 0.76)
end
BH_theme()
 

.drakonez

Участник
53
14
Фиолетовая тема

2021-10-09 17-24-45-676.png

violet theme:
    function VioletTheme()
        local style = imgui.GetStyle()
        local colors = style.Colors
        local clr = imgui.Col
        local ImVec4 = imgui.ImVec4
        colors[clr.Text]                 = ImVec4(1.00, 1.00, 1.00, 1.00)
        colors[clr.TextDisabled]         = ImVec4(0.60, 0.60, 0.60, 1.00)
        colors[clr.WindowBg]             = ImVec4(0.09, 0.09, 0.09, 1.00)
        colors[clr.ChildWindowBg]        = ImVec4(9.90, 9.99, 9.99, 0.00)
        colors[clr.PopupBg]              = ImVec4(0.09, 0.09, 0.09, 1.00)
        colors[clr.Border]               = ImVec4(0.71, 0.71, 0.71, 0.40)
        colors[clr.BorderShadow]         = ImVec4(9.90, 9.99, 9.99, 0.00)
        colors[clr.FrameBg]              = ImVec4(0.34, 0.30, 0.34, 0.30)
        colors[clr.FrameBgHovered]       = ImVec4(0.22, 0.21, 0.21, 0.40)
        colors[clr.FrameBgActive]        = ImVec4(0.20, 0.20, 0.20, 0.44)
        colors[clr.TitleBg]              = ImVec4(0.52, 0.27, 0.77, 0.82)
        colors[clr.TitleBgActive]        = ImVec4(0.55, 0.28, 0.75, 0.87)
        colors[clr.TitleBgCollapsed]     = ImVec4(9.99, 9.99, 9.90, 0.20)
        colors[clr.MenuBarBg]            = ImVec4(0.27, 0.27, 0.29, 0.80)
        colors[clr.ScrollbarBg]          = ImVec4(0.08, 0.08, 0.08, 0.60)
        colors[clr.ScrollbarGrab]        = ImVec4(0.54, 0.20, 0.66, 0.30)
        colors[clr.ScrollbarGrabHovered] = ImVec4(0.21, 0.21, 0.21, 0.40)
        colors[clr.ScrollbarGrabActive]  = ImVec4(0.80, 0.50, 0.50, 0.40)
        colors[clr.ComboBg]              = ImVec4(0.20, 0.20, 0.20, 0.99)
        colors[clr.CheckMark]            = ImVec4(0.89, 0.89, 0.89, 0.50)
        colors[clr.SliderGrab]           = ImVec4(1.00, 1.00, 1.00, 0.30)
        colors[clr.SliderGrabActive]     = ImVec4(0.80, 0.50, 0.50, 1.00)
        colors[clr.Button]               = ImVec4(0.48, 0.25, 0.60, 0.60)
        colors[clr.ButtonHovered]        = ImVec4(0.67, 0.40, 0.40, 1.00)
        colors[clr.ButtonActive]         = ImVec4(0.80, 0.50, 0.50, 1.00)
        colors[clr.Header]               = ImVec4(0.56, 0.27, 0.73, 0.44)
        colors[clr.HeaderHovered]        = ImVec4(0.78, 0.44, 0.89, 0.80)
        colors[clr.HeaderActive]         = ImVec4(0.81, 0.52, 0.87, 0.80)
        colors[clr.Separator]            = ImVec4(0.42, 0.42, 0.42, 1.00)
        colors[clr.SeparatorHovered]     = ImVec4(0.57, 0.24, 0.73, 1.00)
        colors[clr.SeparatorActive]      = ImVec4(0.69, 0.69, 0.89, 1.00)
        colors[clr.ResizeGrip]           = ImVec4(1.00, 1.00, 1.00, 0.30)
        colors[clr.ResizeGripHovered]    = ImVec4(1.00, 1.00, 1.00, 0.60)
        colors[clr.ResizeGripActive]     = ImVec4(1.00, 1.00, 1.00, 0.89)
        colors[clr.CloseButton]          = ImVec4(0.33, 0.14, 0.46, 0.50)
        colors[clr.CloseButtonHovered]   = ImVec4(0.69, 0.69, 0.89, 0.60)
        colors[clr.CloseButtonActive]    = ImVec4(0.69, 0.69, 0.69, 1.00)
        colors[clr.PlotLines]            = ImVec4(1.00, 0.99, 0.99, 1.00)
        colors[clr.PlotLinesHovered]     = ImVec4(0.49, 0.00, 0.89, 1.00)
        colors[clr.PlotHistogram]        = ImVec4(9.99, 9.99, 9.90, 1.00)
        colors[clr.PlotHistogramHovered] = ImVec4(9.99, 9.99, 9.90, 1.00)
        colors[clr.TextSelectedBg]       = ImVec4(0.54, 0.00, 1.00, 0.34)
        colors[clr.ModalWindowDarkening] = ImVec4(0.20, 0.20, 0.20, 0.34)
    end
 

Shepi

Активный
178
37
Тёмно-Салатовая тема.

1636484814768.png


Lua:
local style = imgui.GetStyle()
    local colors = style.Colors
    local clr = imgui.Col
    local ImVec4 = imgui.ImVec4
    local ImVec2 = imgui.ImVec2

     style.WindowPadding = ImVec2(15, 15)
     style.WindowRounding = 15.0
     style.FramePadding = ImVec2(5, 5)
     style.ItemSpacing = ImVec2(12, 8)
     style.ItemInnerSpacing = ImVec2(8, 6)
     style.IndentSpacing = 25.0
     style.ScrollbarSize = 15.0
     style.ScrollbarRounding = 15.0
     style.GrabMinSize = 15.0
     style.GrabRounding = 7.0
     style.ChildWindowRounding = 8.0
     style.FrameRounding = 6.0


       colors[clr.Text] = ImVec4(0.95, 0.96, 0.98, 1.00)
       colors[clr.TextDisabled] = ImVec4(0.36, 0.42, 0.47, 1.00)
       colors[clr.WindowBg] = ImVec4(0.11, 0.15, 0.17, 1.00)        
       colors[clr.ChildWindowBg] = ImVec4(0.11, 0.15, 0.17, 1.00)
       colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
       colors[clr.Border] = ImVec4(0.14, 0.14, 0.14, 1.00)
       colors[clr.BorderShadow] = ImVec4(1.00, 1.00, 1.00, 0.10)
       colors[clr.FrameBg] = ImVec4(0.22, 0.22, 0.22, 1.00)
       colors[clr.FrameBgHovered] = ImVec4(0.12, 0.20, 0.28, 1.00)
       colors[clr.FrameBgActive] = ImVec4(0.09, 0.12, 0.14, 1.00)
       colors[clr.TitleBg] = ImVec4(0.51, 1.00, 0.00, 0.71)
       colors[clr.TitleBgCollapsed] = ImVec4(0.83, 0.98, 0.00, 1.00)
       colors[clr.TitleBgActive] = ImVec4(0.51, 1.00, 0.00, 0.71)
       colors[clr.MenuBarBg] = ImVec4(0.15, 0.18, 0.22, 1.00)
       colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.39)
       colors[clr.ScrollbarGrab] = ImVec4(0.20, 0.25, 0.29, 1.00)
       colors[clr.ScrollbarGrabHovered] = ImVec4(0.18, 0.22, 0.25, 1.00)
       colors[clr.ScrollbarGrabActive] = ImVec4(0.09, 0.21, 0.31, 1.00)
       colors[clr.ComboBg] = ImVec4(0.20, 0.25, 0.29, 1.00)
       colors[clr.CheckMark] = ImVec4(0.51, 1.00, 0.00, 0.71)
       colors[clr.SliderGrab] = ImVec4(0.51, 1.00, 0.00, 0.71)
       colors[clr.SliderGrabActive] = ImVec4(0.51, 1.00, 0.00, 1.00)
       colors[clr.Button]          = ImVec4(0.51, 1.00, 0.00, 0.71)
       colors[clr.ButtonHovered]    = ImVec4(0.51, 1.00, 0.00, 1.00)
       colors[clr.ButtonActive]      = ImVec4(0.83, 0.98, 0.00, 1.00)
       colors[clr.Header] = ImVec4(0.51, 1.00, 0.00, 0.71)
       colors[clr.HeaderHovered] = ImVec4(0.51, 1.00, 0.00, 1.00)
       colors[clr.HeaderActive] = ImVec4(0.83, 0.98, 0.00, 1.00)
       colors[clr.ResizeGrip] = ImVec4(0.26, 0.59, 0.98, 0.25)
       colors[clr.ResizeGripHovered] = ImVec4(0.26, 0.59, 0.98, 0.67)
       colors[clr.ResizeGripActive] = ImVec4(0.06, 0.05, 0.07, 1.00)
       colors[clr.CloseButton]          = ImVec4(0.11, 0.15, 0.17, 1.00)
    colors[clr.CloseButtonHovered]   = ImVec4(0.95, 0.79, 0.00, 1.00)
    colors[clr.CloseButtonActive]    = ImVec4(1.00, 0.05, 0.00, 1.00)
       colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
       colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.43, 0.35, 1.00)
       colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
       colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
       colors[clr.TextSelectedBg] = ImVec4(0.25, 1.00, 0.00, 0.43)
       colors[clr.ModalWindowDarkening] = ImVec4(1.00, 0.98, 0.95, 0.73)
 
  • Нравится
Реакции: cort

THERION

Известный
Проверенный
88
327
Динамическая ImGui тема на основе MoonMonet

7DyZ3wr.png

Функция:
-- @param color number: Main color U32 representation.
-- @param chroma_multiplier number: Color brightness. ∈ [0.5; 2.0].
-- @param accurate_shades boolean: Use accurate shades.
function imgui.theme(color, chroma_multiplier, accurate_shades)
   local vec2, vec4 = imgui.ImVec2, imgui.ImVec4
   imgui.SwitchContext()
   local style = imgui.GetStyle()
   local colors = style.Colors
   local flags = imgui.Col

   do -- style
      style.WindowPadding = vec2(8, 8)
      style.WindowRounding = 7.0
      style.WindowBorderSize = 0
      -- style.WindowMinSize = ImVec2
      -- style.WindowTitleAlign = ImVec2
      -- style.WindowMenuButtonPosition = imGuiDir
      style.ChildRounding = 7.0
      style.ChildBorderSize = 1.0
      -- style.PopupRounding = float
      -- style.PopupBorderSize = float
      style.FramePadding = vec2(5, 3)
      style.FrameRounding = 10.0
      -- style.FrameBorderSize = float
      -- style.ItemSpacing = ImVec2
      -- style.ItemInnerSpacing = ImVec2
      -- style.TouchExtraPadding = ImVec2
      -- style.IndentSpacing = float
      -- style.ColumnsMinSpacing = float
      -- style.ScrollbarSize = float
      -- style.ScrollbarRounding = float
      style.GrabMinSize = 7
      style.GrabRounding = 15
      -- style.TabRounding = float
      -- style.TabBorderSize = float
      -- style.ColorButtonPosition = ImGuiDir
      style.ButtonTextAlign = vec2(0.5, 0.5)
      -- style.SelectableTextAlign = ImVec2
      -- style.DisplayWindowPadding = ImVec2
      -- style.DisplaySafeAreaPadding = ImVec2
      -- style.AntiAliasedLines = bool;
      -- style.AntiAliasedFill = bool;
      -- style.CurveTessellationTol = float
   end

   do -- colors
      local function to_vec4(u32)
         local a = bit.band(bit.rshift(u32, 24), 0xFF) / 0xFF
         local r = bit.band(bit.rshift(u32, 16), 0xFF) / 0xFF
         local g = bit.band(bit.rshift(u32, 8), 0xFF) / 0xFF
         local b = bit.band(u32, 0xFF) / 0xFF
         return imgui.ImVec4(r, g, b, a)
      end

      local monet = require("MoonMonet")
      local palette = monet.buildColors(color, chroma_multiplier, accurate_shades)
    
      colors[flags.Text] = to_vec4(palette.neutral1.color_50)
      -- colors[flags.TextDisabled] = ImVec4
      colors[flags.WindowBg] = to_vec4(palette.accent1.color_900)
      colors[flags.ChildBg] = to_vec4(palette.accent2.color_800)
      colors[flags.PopupBg] = to_vec4(palette.accent2.color_800)
      colors[flags.Border] = to_vec4(palette.neutral1.color_100)
      colors[flags.BorderShadow] = to_vec4(palette.neutral2.color_900)
      colors[flags.FrameBg] = to_vec4(palette.accent1.color_800)
      colors[flags.FrameBgHovered] = to_vec4(palette.accent1.color_700)
      colors[flags.FrameBgActive] = to_vec4(palette.accent1.color_600)
      -- colors[flags.TitleBg] = ImVec4
      colors[flags.TitleBgActive] = to_vec4(palette.accent1.color_800)
      -- colors[flags.TitleBgCollapsed] = ImVec4
      -- colors[flags.MenuBarBg] = ImVec4
      colors[flags.ScrollbarBg] = to_vec4(palette.accent1.color_800)
      colors[flags.ScrollbarGrab] = to_vec4(palette.accent2.color_600)
      colors[flags.ScrollbarGrabHovered] = to_vec4(palette.accent2.color_500)
      colors[flags.ScrollbarGrabActive] = to_vec4(palette.accent2.color_400)
      colors[flags.CheckMark] = to_vec4(palette.neutral1.color_50)
      colors[flags.SliderGrab] = to_vec4(palette.accent2.color_500)
      colors[flags.SliderGrabActive] = to_vec4(palette.accent2.color_400)
      colors[flags.Button] = to_vec4(palette.accent1.color_500)
      colors[flags.ButtonHovered] = to_vec4(palette.accent1.color_400)
      colors[flags.ButtonActive] = to_vec4(palette.accent1.color_300)
      colors[flags.Header] = to_vec4(palette.accent1.color_800)
      colors[flags.HeaderHovered] = to_vec4(palette.accent1.color_700)
      colors[flags.HeaderActive] = to_vec4(palette.accent1.color_600)
      colors[flags.Separator] = to_vec4(palette.accent2.color_200)
      colors[flags.SeparatorHovered] = to_vec4(palette.accent2.color_100)
      colors[flags.SeparatorActive] = to_vec4(palette.accent2.color_50)
      colors[flags.ResizeGrip] = to_vec4(palette.accent2.color_900)
      colors[flags.ResizeGripHovered] = to_vec4(palette.accent2.color_800)
      colors[flags.ResizeGripActive] = to_vec4(palette.accent2.color_700)
      colors[flags.Tab] = to_vec4(palette.accent1.color_700)
      colors[flags.TabHovered] = to_vec4(palette.accent1.color_600)
      colors[flags.TabActive] = to_vec4(palette.accent1.color_500)
      -- colors[flags.TabUnfocused] = ImVec4
      -- colors[flags.TabUnfocusedActive] = ImVec4
      colors[flags.PlotLines] = to_vec4(palette.accent3.color_300)
      colors[flags.PlotLinesHovered] = to_vec4(palette.accent3.color_50)
      colors[flags.PlotHistogram] = to_vec4(palette.accent3.color_300)
      colors[flags.PlotHistogramHovered] = to_vec4(palette.accent3.color_50)
      -- colors[flags.TextSelectedBg] = ImVec4
      colors[flags.DragDropTarget] = to_vec4(palette.accent3.color_700)
      -- colors[flags.NavHighlight] = ImVec4
      -- colors[flags.NavWindowingHighlight] = ImVec4
      -- colors[flags.NavWindowingDimBg] = ImVec4
      -- colors[flags.ModalWindowDimBg] = ImVec4
   end
end
Пример использования:
imgui.OnInitialize(function()
   -- code
   imgui.theme(0xFF00BABE, 1.0, true)
end)
 
Последнее редактирование:

Z3roKwq

Известный
291
154
Чёрно-белая тема _=Gigant=_ но на луа

cool-theme.png

код:
colors[clr.Text] = ImVec4(0.80, 0.80, 0.83, 1.00);
    colors[clr.TextDisabled] = ImVec4(0.24, 0.23, 0.29, 1.00);
    colors[clr.WindowBg] = ImVec4(0.06, 0.05, 0.07, 1.00);
    colors[clr.ChildWindowBg] = ImVec4(0.07, 0.07, 0.09, 1.00);
    colors[clr.PopupBg] = ImVec4(0.07, 0.07, 0.09, 1.00);
    colors[clr.Border] = ImVec4(0.80, 0.80, 0.83, 0.88);
    colors[clr.BorderShadow] = ImVec4(0.92, 0.91, 0.88, 0.00);
    colors[clr.FrameBg] = ImVec4(0.10, 0.09, 0.12, 1.00);
    colors[clr.FrameBgHovered] = ImVec4(0.24, 0.23, 0.29, 1.00);
    colors[clr.FrameBgActive] = ImVec4(0.56, 0.56, 0.58, 1.00);
    colors[clr.TitleBg] = ImVec4(0.10, 0.09, 0.12, 1.00);
    colors[clr.TitleBgCollapsed] = ImVec4(1.00, 0.98, 0.95, 0.75);
    colors[clr.TitleBgActive] = ImVec4(0.07, 0.07, 0.09, 1.00);
    colors[clr.MenuBarBg] = ImVec4(0.10, 0.09, 0.12, 1.00);
    colors[clr.ScrollbarBg] = ImVec4(0.10, 0.09, 0.12, 1.00);
    colors[clr.ScrollbarGrab] = ImVec4(0.80, 0.80, 0.83, 0.31);
    colors[clr.ScrollbarGrabHovered] = ImVec4(0.56, 0.56, 0.58, 1.00);
    colors[clr.ScrollbarGrabActive] = ImVec4(0.06, 0.05, 0.07, 1.00);
    --colors[clr.ComboBg] = ImVec4(0.19, 0.18, 0.21, 1.00);
    colors[clr.CheckMark] = ImVec4(0.80, 0.80, 0.83, 0.31);
    colors[clr.SliderGrab] = ImVec4(0.80, 0.80, 0.83, 0.31);
    colors[clr.SliderGrabActive] = ImVec4(0.06, 0.05, 0.07, 1.00);
    colors[clr.Button] = ImVec4(0.10, 0.09, 0.12, 1.00);
    colors[clr.ButtonHovered] = ImVec4(0.24, 0.23, 0.29, 1.00);
    colors[clr.ButtonActive] = ImVec4(0.56, 0.56, 0.58, 1.00);
    colors[clr.Header] = ImVec4(0.10, 0.09, 0.12, 1.00);
    colors[clr.HeaderHovered] = ImVec4(0.56, 0.56, 0.58, 1.00);
    colors[clr.HeaderActive] = ImVec4(0.06, 0.05, 0.07, 1.00);
    --colors[clr.Column] = ImVec4(0.56, 0.56, 0.58, 1.00);
    --colors[clr.ColumnHovered] = ImVec4(0.24, 0.23, 0.29, 1.00);
    --colors[clr.ColumnActive] = ImVec4(0.56, 0.56, 0.58, 1.00);
    colors[clr.ResizeGrip] = ImVec4(0.00, 0.00, 0.00, 0.00);
    colors[clr.ResizeGripHovered] = ImVec4(0.56, 0.56, 0.58, 1.00);
    colors[clr.ResizeGripActive] = ImVec4(0.06, 0.05, 0.07, 1.00);
    --colors[clr.CloseButton] = ImVec4(0.40, 0.39, 0.38, 0.16);
    --colors[clr.CloseButtonHovered] = ImVec4(0.40, 0.39, 0.38, 0.39);
    --colors[clr.CloseButtonActive] = ImVec4(0.40, 0.39, 0.38, 1.00);
    colors[clr.PlotLines] = ImVec4(0.40, 0.39, 0.38, 0.63);
    colors[clr.PlotLinesHovered] = ImVec4(0.25, 1.00, 0.00, 1.00);
    colors[clr.PlotHistogram] = ImVec4(0.40, 0.39, 0.38, 0.63);
    colors[clr.PlotHistogramHovered] = ImVec4(0.25, 1.00, 0.00, 1.00);
    colors[clr.TextSelectedBg] = ImVec4(0.25, 1.00, 0.00, 0.43);
    colors[clr.ModalWindowDarkening] = ImVec4(1.00, 0.98, 0.95, 0.73);
[/SPOILER]
 
Последнее редактирование:
  • Эм
Реакции: 1NEXPL1CA

[w0te]

Потрачен
771
492
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Style ImGUI VoightHack
Format: Lua, C++
Screen:
WM-Screenshots-20220117103156.png
Lua Code Style:

Lua Style:
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4

style.Alpha = 1.0
style.ChildWindowRounding = 3.0
style.WindowRounding = 96.0
style.GrabRounding = 4.0
style.GrabMinSize = 20.0
style.FrameRounding = 3.0

colors[clr.Text]                   = ImVec4(0.00, 0.58, 1.00, 1.00)
colors[clr.TextDisabled]           = ImVec4(0.00, 0.58, 1.00, 1.00)
colors[clr.WindowBg]               = ImVec4(0.24, 0.10, 0.49, 1.00)
colors[clr.ChildWindowBg]          = ImVec4(0.24, 0.11, 0.49, 1.00)
colors[clr.PopupBg]                = ImVec4(0.26, 0.07, 0.59, 1.00)
colors[clr.Border]                 = ImVec4(0.00, 0.00, 0.00, 1.00)
colors[clr.BorderShadow]           = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.FrameBg]                = ImVec4(0.27, 0.04, 0.69, 1.00)
colors[clr.FrameBgHovered]         = ImVec4(0.28, 0.11, 0.58, 1.00)
colors[clr.FrameBgActive]          = ImVec4(0.35, 0.00, 1.00, 1.00)
colors[clr.TitleBg]                = ImVec4(0.31, 0.02, 0.86, 1.00)
colors[clr.TitleBgActive]          = ImVec4(0.31, 0.02, 0.86, 1.00)
colors[clr.TitleBgCollapsed]       = ImVec4(0.31, 0.02, 0.86, 1.00)
colors[clr.MenuBarBg]              = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ScrollbarBg]            = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ScrollbarGrab]          = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ScrollbarGrabHovered]   = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ScrollbarGrabActive]    = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ComboBg]                = ImVec4(0.45, 0.27, 0.77, 0.04)
colors[clr.CheckMark]              = ImVec4(0.00, 0.58, 1.00, 1.00)
colors[clr.SliderGrab]             = ImVec4(0.01, 0.52, 0.89, 1.00)
colors[clr.SliderGrabActive]       = ImVec4(0.00, 0.70, 1.00, 1.00)
colors[clr.Button]                 = ImVec4(0.27, 0.03, 0.72, 1.00)
colors[clr.ButtonHovered]          = ImVec4(0.32, 0.00, 0.91, 1.00)
colors[clr.ButtonActive]           = ImVec4(0.35, 0.00, 1.00, 1.00)
colors[clr.Header]                 = ImVec4(0.26, 0.59, 0.98, 0.31)
colors[clr.HeaderHovered]          = ImVec4(0.26, 0.59, 0.98, 0.80)
colors[clr.HeaderActive]           = ImVec4(0.26, 0.59, 0.98, 1.00)
colors[clr.Separator]              = ImVec4(0.28, 0.00, 0.80, 1.00)
colors[clr.SeparatorHovered]       = ImVec4(0.28, 0.00, 0.80, 1.00)
colors[clr.SeparatorActive]        = ImVec4(0.28, 0.00, 0.80, 1.00)
colors[clr.ResizeGrip]             = ImVec4(0.26, 0.59, 0.98, 0.25)
colors[clr.ResizeGripHovered]      = ImVec4(0.26, 0.59, 0.98, 0.67)
colors[clr.ResizeGripActive]       = ImVec4(0.26, 0.59, 0.98, 0.95)
colors[clr.CloseButton]            = ImVec4(0.41, 0.41, 0.41, 0.50)
colors[clr.CloseButtonHovered]     = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.CloseButtonActive]      = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.PlotLines]              = ImVec4(0.61, 0.61, 0.61, 1.00)
colors[clr.PlotLinesHovered]       = ImVec4(1.00, 0.43, 0.35, 1.00)
colors[clr.PlotHistogram]          = ImVec4(0.90, 0.70, 0.00, 1.00)
colors[clr.PlotHistogramHovered]   = ImVec4(1.00, 0.60, 0.00, 1.00)
colors[clr.TextSelectedBg]         = ImVec4(0.26, 0.59, 0.98, 0.35)
colors[clr.ModalWindowDarkening]   = ImVec4(0.80, 0.80, 0.80, 0.35)
C++ Code Style:
C++ Style:
ImVec4* colors = ImGui::GetStyle().Colors;
colors[ImGuiCol_Text]                   = ImVec4(0.00f, 0.58f, 1.00f, 1.00f);
colors[ImGuiCol_TextDisabled]           = ImVec4(0.00f, 0.58f, 1.00f, 1.00f);
colors[ImGuiCol_WindowBg]               = ImVec4(0.24f, 0.10f, 0.49f, 1.00f);
colors[ImGuiCol_ChildWindowBg]          = ImVec4(0.24f, 0.11f, 0.49f, 1.00f);
colors[ImGuiCol_PopupBg]                = ImVec4(0.26f, 0.07f, 0.59f, 1.00f);
colors[ImGuiCol_Border]                 = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
colors[ImGuiCol_BorderShadow]           = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
colors[ImGuiCol_FrameBg]                = ImVec4(0.27f, 0.04f, 0.69f, 1.00f);
colors[ImGuiCol_FrameBgHovered]         = ImVec4(0.28f, 0.11f, 0.58f, 1.00f);
colors[ImGuiCol_FrameBgActive]          = ImVec4(0.35f, 0.00f, 1.00f, 1.00f);
colors[ImGuiCol_TitleBg]                = ImVec4(0.31f, 0.02f, 0.86f, 1.00f);
colors[ImGuiCol_TitleBgActive]          = ImVec4(0.31f, 0.02f, 0.86f, 1.00f);
colors[ImGuiCol_TitleBgCollapsed]       = ImVec4(0.31f, 0.02f, 0.86f, 1.00f);
colors[ImGuiCol_MenuBarBg]              = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ScrollbarBg]            = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ScrollbarGrab]          = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ScrollbarGrabHovered]   = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ScrollbarGrabActive]    = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ComboBg]                = ImVec4(0.45f, 0.27f, 0.77f, 0.04f);
colors[ImGuiCol_CheckMark]              = ImVec4(0.00f, 0.58f, 1.00f, 1.00f);
colors[ImGuiCol_SliderGrab]             = ImVec4(0.01f, 0.52f, 0.89f, 1.00f);
colors[ImGuiCol_SliderGrabActive]       = ImVec4(0.00f, 0.70f, 1.00f, 1.00f);
colors[ImGuiCol_Button]                 = ImVec4(0.27f, 0.03f, 0.72f, 1.00f);
colors[ImGuiCol_ButtonHovered]          = ImVec4(0.32f, 0.00f, 0.91f, 1.00f);
colors[ImGuiCol_ButtonActive]           = ImVec4(0.35f, 0.00f, 1.00f, 1.00f);
colors[ImGuiCol_Header]                 = ImVec4(0.26f, 0.59f, 0.98f, 0.31f);
colors[ImGuiCol_HeaderHovered]          = ImVec4(0.26f, 0.59f, 0.98f, 0.80f);
colors[ImGuiCol_HeaderActive]           = ImVec4(0.26f, 0.59f, 0.98f, 1.00f);
colors[ImGuiCol_Separator]              = ImVec4(0.28f, 0.00f, 0.80f, 1.00f);
colors[ImGuiCol_SeparatorHovered]       = ImVec4(0.28f, 0.00f, 0.80f, 1.00f);
colors[ImGuiCol_SeparatorActive]        = ImVec4(0.28f, 0.00f, 0.80f, 1.00f);
colors[ImGuiCol_ResizeGrip]             = ImVec4(0.26f, 0.59f, 0.98f, 0.25f);
colors[ImGuiCol_ResizeGripHovered]      = ImVec4(0.26f, 0.59f, 0.98f, 0.67f);
colors[ImGuiCol_ResizeGripActive]       = ImVec4(0.26f, 0.59f, 0.98f, 0.95f);
colors[ImGuiCol_CloseButton]            = ImVec4(0.41f, 0.41f, 0.41f, 0.50f);
colors[ImGuiCol_CloseButtonHovered]     = ImVec4(0.98f, 0.39f, 0.36f, 1.00f);
colors[ImGuiCol_CloseButtonActive]      = ImVec4(0.98f, 0.39f, 0.36f, 1.00f);
colors[ImGuiCol_PlotLines]              = ImVec4(0.61f, 0.61f, 0.61f, 1.00f);
colors[ImGuiCol_PlotLinesHovered]       = ImVec4(1.00f, 0.43f, 0.35f, 1.00f);
colors[ImGuiCol_PlotHistogram]          = ImVec4(0.90f, 0.70f, 0.00f, 1.00f);
colors[ImGuiCol_PlotHistogramHovered]   = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);
colors[ImGuiCol_TextSelectedBg]         = ImVec4(0.26f, 0.59f, 0.98f, 0.35f);
colors[ImGuiCol_ModalWindowDarkening]   = ImVec4(0.80f, 0.80f, 0.80f, 0.35f);
Video Review:
 
Последнее редактирование:

Rice.

Известный
Модератор
1,756
1,623
Style ImGUI VoightHack
Format: Lua, C++
Screen:
Lua Code Style:

Lua Style:
imgui.SwitchContext()
local style = imgui.GetStyle()
local colors = style.Colors
local clr = imgui.Col
local ImVec4 = imgui.ImVec4

style.Alpha = 1.0
style.ChildWindowRounding = 3.0
style.WindowRounding = 96.0
style.GrabRounding = 1.0
style.GrabMinSize = 20.0
style.FrameRounding = 3.0

colors[clr.Text]                   = ImVec4(0.00, 0.58, 1.00, 1.00)
colors[clr.TextDisabled]           = ImVec4(0.00, 0.58, 1.00, 1.00)
colors[clr.WindowBg]               = ImVec4(0.24, 0.10, 0.49, 1.00)
colors[clr.ChildWindowBg]          = ImVec4(0.24, 0.11, 0.49, 1.00)
colors[clr.PopupBg]                = ImVec4(0.26, 0.07, 0.59, 1.00)
colors[clr.Border]                 = ImVec4(0.00, 0.00, 0.00, 1.00)
colors[clr.BorderShadow]           = ImVec4(0.00, 0.00, 0.00, 0.00)
colors[clr.FrameBg]                = ImVec4(0.27, 0.04, 0.69, 1.00)
colors[clr.FrameBgHovered]         = ImVec4(0.28, 0.11, 0.58, 1.00)
colors[clr.FrameBgActive]          = ImVec4(0.35, 0.00, 1.00, 1.00)
colors[clr.TitleBg]                = ImVec4(0.31, 0.02, 0.86, 1.00)
colors[clr.TitleBgActive]          = ImVec4(0.31, 0.02, 0.86, 1.00)
colors[clr.TitleBgCollapsed]       = ImVec4(0.31, 0.02, 0.86, 1.00)
colors[clr.MenuBarBg]              = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ScrollbarBg]            = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ScrollbarGrab]          = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ScrollbarGrabHovered]   = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ScrollbarGrabActive]    = ImVec4(0.24, 0.04, 0.59, 1.00)
colors[clr.ComboBg]                = ImVec4(0.45, 0.27, 0.77, 0.04)
colors[clr.CheckMark]              = ImVec4(0.00, 0.58, 1.00, 1.00)
colors[clr.SliderGrab]             = ImVec4(0.01, 0.52, 0.89, 1.00)
colors[clr.SliderGrabActive]       = ImVec4(0.00, 0.70, 1.00, 1.00)
colors[clr.Button]                 = ImVec4(0.27, 0.03, 0.72, 1.00)
colors[clr.ButtonHovered]          = ImVec4(0.32, 0.00, 0.91, 1.00)
colors[clr.ButtonActive]           = ImVec4(0.35, 0.00, 1.00, 1.00)
colors[clr.Header]                 = ImVec4(0.26, 0.59, 0.98, 0.31)
colors[clr.HeaderHovered]          = ImVec4(0.26, 0.59, 0.98, 0.80)
colors[clr.HeaderActive]           = ImVec4(0.26, 0.59, 0.98, 1.00)
colors[clr.Separator]              = ImVec4(0.28, 0.00, 0.80, 1.00)
colors[clr.SeparatorHovered]       = ImVec4(0.28, 0.00, 0.80, 1.00)
colors[clr.SeparatorActive]        = ImVec4(0.28, 0.00, 0.80, 1.00)
colors[clr.ResizeGrip]             = ImVec4(0.26, 0.59, 0.98, 0.25)
colors[clr.ResizeGripHovered]      = ImVec4(0.26, 0.59, 0.98, 0.67)
colors[clr.ResizeGripActive]       = ImVec4(0.26, 0.59, 0.98, 0.95)
colors[clr.CloseButton]            = ImVec4(0.41, 0.41, 0.41, 0.50)
colors[clr.CloseButtonHovered]     = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.CloseButtonActive]      = ImVec4(0.98, 0.39, 0.36, 1.00)
colors[clr.PlotLines]              = ImVec4(0.61, 0.61, 0.61, 1.00)
colors[clr.PlotLinesHovered]       = ImVec4(1.00, 0.43, 0.35, 1.00)
colors[clr.PlotHistogram]          = ImVec4(0.90, 0.70, 0.00, 1.00)
colors[clr.PlotHistogramHovered]   = ImVec4(1.00, 0.60, 0.00, 1.00)
colors[clr.TextSelectedBg]         = ImVec4(0.26, 0.59, 0.98, 0.35)
colors[clr.ModalWindowDarkening]   = ImVec4(0.80, 0.80, 0.80, 0.35)
C++ Code Style:
C++ Style:
ImVec4* colors = ImGui::GetStyle().Colors;
colors[ImGuiCol_Text]                   = ImVec4(0.00f, 0.58f, 1.00f, 1.00f);
colors[ImGuiCol_TextDisabled]           = ImVec4(0.00f, 0.58f, 1.00f, 1.00f);
colors[ImGuiCol_WindowBg]               = ImVec4(0.24f, 0.10f, 0.49f, 1.00f);
colors[ImGuiCol_ChildWindowBg]          = ImVec4(0.24f, 0.11f, 0.49f, 1.00f);
colors[ImGuiCol_PopupBg]                = ImVec4(0.26f, 0.07f, 0.59f, 1.00f);
colors[ImGuiCol_Border]                 = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
colors[ImGuiCol_BorderShadow]           = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
colors[ImGuiCol_FrameBg]                = ImVec4(0.27f, 0.04f, 0.69f, 1.00f);
colors[ImGuiCol_FrameBgHovered]         = ImVec4(0.28f, 0.11f, 0.58f, 1.00f);
colors[ImGuiCol_FrameBgActive]          = ImVec4(0.35f, 0.00f, 1.00f, 1.00f);
colors[ImGuiCol_TitleBg]                = ImVec4(0.31f, 0.02f, 0.86f, 1.00f);
colors[ImGuiCol_TitleBgActive]          = ImVec4(0.31f, 0.02f, 0.86f, 1.00f);
colors[ImGuiCol_TitleBgCollapsed]       = ImVec4(0.31f, 0.02f, 0.86f, 1.00f);
colors[ImGuiCol_MenuBarBg]              = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ScrollbarBg]            = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ScrollbarGrab]          = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ScrollbarGrabHovered]   = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ScrollbarGrabActive]    = ImVec4(0.24f, 0.04f, 0.59f, 1.00f);
colors[ImGuiCol_ComboBg]                = ImVec4(0.45f, 0.27f, 0.77f, 0.04f);
colors[ImGuiCol_CheckMark]              = ImVec4(0.00f, 0.58f, 1.00f, 1.00f);
colors[ImGuiCol_SliderGrab]             = ImVec4(0.01f, 0.52f, 0.89f, 1.00f);
colors[ImGuiCol_SliderGrabActive]       = ImVec4(0.00f, 0.70f, 1.00f, 1.00f);
colors[ImGuiCol_Button]                 = ImVec4(0.27f, 0.03f, 0.72f, 1.00f);
colors[ImGuiCol_ButtonHovered]          = ImVec4(0.32f, 0.00f, 0.91f, 1.00f);
colors[ImGuiCol_ButtonActive]           = ImVec4(0.35f, 0.00f, 1.00f, 1.00f);
colors[ImGuiCol_Header]                 = ImVec4(0.26f, 0.59f, 0.98f, 0.31f);
colors[ImGuiCol_HeaderHovered]          = ImVec4(0.26f, 0.59f, 0.98f, 0.80f);
colors[ImGuiCol_HeaderActive]           = ImVec4(0.26f, 0.59f, 0.98f, 1.00f);
colors[ImGuiCol_Separator]              = ImVec4(0.28f, 0.00f, 0.80f, 1.00f);
colors[ImGuiCol_SeparatorHovered]       = ImVec4(0.28f, 0.00f, 0.80f, 1.00f);
colors[ImGuiCol_SeparatorActive]        = ImVec4(0.28f, 0.00f, 0.80f, 1.00f);
colors[ImGuiCol_ResizeGrip]             = ImVec4(0.26f, 0.59f, 0.98f, 0.25f);
colors[ImGuiCol_ResizeGripHovered]      = ImVec4(0.26f, 0.59f, 0.98f, 0.67f);
colors[ImGuiCol_ResizeGripActive]       = ImVec4(0.26f, 0.59f, 0.98f, 0.95f);
colors[ImGuiCol_CloseButton]            = ImVec4(0.41f, 0.41f, 0.41f, 0.50f);
colors[ImGuiCol_CloseButtonHovered]     = ImVec4(0.98f, 0.39f, 0.36f, 1.00f);
colors[ImGuiCol_CloseButtonActive]      = ImVec4(0.98f, 0.39f, 0.36f, 1.00f);
colors[ImGuiCol_PlotLines]              = ImVec4(0.61f, 0.61f, 0.61f, 1.00f);
colors[ImGuiCol_PlotLinesHovered]       = ImVec4(1.00f, 0.43f, 0.35f, 1.00f);
colors[ImGuiCol_PlotHistogram]          = ImVec4(0.90f, 0.70f, 0.00f, 1.00f);
colors[ImGuiCol_PlotHistogramHovered]   = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);
colors[ImGuiCol_TextSelectedBg]         = ImVec4(0.26f, 0.59f, 0.98f, 0.35f);
colors[ImGuiCol_ModalWindowDarkening]   = ImVec4(0.80f, 0.80f, 0.80f, 0.35f);
Video Review:
Давай style.GrabRounding = 4.0, чтобы слайдер был аккуратнее :)
 
  • Нравится
Реакции: [w0te]

SADFI2259X

Участник
92
76

SADFI Project THEME:​


sa-mp-039.png

theme code:
function theme()
    imgui.SwitchContext()
    local style = imgui.GetStyle()
    local colors = style.Colors
    local clr = imgui.Col
    local ImVec4 = imgui.ImVec4
    local ImVec2 = imgui.ImVec2
    
    style.WindowRounding = 3
    style.WindowTitleAlign = imgui.ImVec2(0.5, 0.5)
    style.ChildWindowRounding = 3
    style.FrameRounding = 3
    style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
    style.ScrollbarSize = 13.0
    style.ScrollbarRounding = 1
    style.GrabMinSize = 8.0
    style.GrabRounding = 3
    style.WindowPadding = imgui.ImVec2(4.0, 4.0)
    style.FramePadding = imgui.ImVec2(2.5, 3.5)
    style.ButtonTextAlign = imgui.ImVec2(0.02, 0.4)   

    colors[clr.Text]                   = ImVec4(1.00, 1.00, 1.00, 1.00)
    colors[clr.TextDisabled]           = ImVec4(0.50, 0.50, 0.50, 1.00)
    colors[clr.WindowBg]               = imgui.ImColor(0, 0, 0, 255):GetVec4()
    colors[clr.ChildWindowBg]          = ImVec4(1.00, 1.00, 1.00, 0.00)
    colors[clr.PopupBg]                = ImVec4(0.08, 0.08, 0.08, 0.94)
    colors[clr.ComboBg]                = colors[clr.PopupBg]
    colors[clr.Border]                 = ImVec4(0.43, 0.43, 0.50, 0.50)
    colors[clr.BorderShadow]           = ImVec4(0.00, 0.00, 0.00, 0.00)
    colors[clr.FrameBg]                = ImVec4(0.12, 0.12, 0.12, 0.94)
    colors[clr.FrameBgHovered]         = ImVec4(0.45, 0.45, 0.45, 0.85)
    colors[clr.FrameBgActive]          = ImVec4(0.63, 0.63, 0.63, 0.63)
    colors[clr.TitleBg]                = ImVec4(0.13, 0.13, 0.13, 0.99)
    colors[clr.TitleBgActive]          = ImVec4(0.13, 0.13, 0.13, 0.99)
    colors[clr.TitleBgCollapsed]       = ImVec4(0.05, 0.05, 0.05, 0.79)
    colors[clr.MenuBarBg]              = ImVec4(0.14, 0.14, 0.14, 1.00)
    colors[clr.ScrollbarBg]            = ImVec4(0.02, 0.02, 0.02, 0.53)
    colors[clr.ScrollbarGrab]          = ImVec4(0.31, 0.31, 0.31, 1.00)
    colors[clr.ScrollbarGrabHovered]   = ImVec4(0.41, 0.41, 0.41, 1.00)
    colors[clr.ScrollbarGrabActive]    = ImVec4(0.51, 0.51, 0.51, 1.00)
    colors[clr.CheckMark]              = ImVec4(1.00, 1.00, 1.00, 1.00)
    colors[clr.SliderGrab]             = ImVec4(0.28, 0.28, 0.28, 1.00)
    colors[clr.SliderGrabActive]       = ImVec4(0.35, 0.35, 0.35, 1.00)
    colors[clr.Button]                 = ImVec4(0.12, 0.12, 0.12, 0.94)
    colors[clr.ButtonHovered]          = ImVec4(0.34, 0.34, 0.35, 0.89)
    colors[clr.ButtonActive]           = ImVec4(0.21, 0.21, 0.21, 0.81)
    colors[clr.Header]                 = ImVec4(0.12, 0.12, 0.12, 0.94)
    colors[clr.HeaderHovered]          = ImVec4(0.34, 0.34, 0.35, 0.89)
    colors[clr.HeaderActive]           = ImVec4(0.12, 0.12, 0.12, 0.94)
    colors[clr.Separator]              = colors[clr.Border]
    colors[clr.SeparatorHovered]       = ImVec4(0.26, 0.59, 0.98, 0.78)
    colors[clr.SeparatorActive]        = ImVec4(0.26, 0.59, 0.98, 1.00)
    colors[clr.ResizeGrip]             = ImVec4(0.26, 0.59, 0.98, 0.25)
    colors[clr.ResizeGripHovered]      = ImVec4(0.26, 0.59, 0.98, 0.67)
    colors[clr.ResizeGripActive]       = ImVec4(0.26, 0.59, 0.98, 0.95)
    colors[clr.CloseButton]            = ImVec4(0.41, 0.41, 0.41, 0.50)
    colors[clr.CloseButtonHovered]     = ImVec4(0.98, 0.39, 0.36, 1.00)
    colors[clr.CloseButtonActive]      = ImVec4(0.98, 0.39, 0.36, 1.00)
    colors[clr.PlotLines]              = ImVec4(0.61, 0.61, 0.61, 1.00)
    colors[clr.PlotLinesHovered]       = ImVec4(1.00, 0.43, 0.35, 1.00)
    colors[clr.PlotHistogram]          = ImVec4(0.90, 0.70, 0.00, 1.00)
    colors[clr.PlotHistogramHovered]   = ImVec4(1.00, 0.60, 0.00, 1.00)
    colors[clr.TextSelectedBg]         = ImVec4(0.26, 0.59, 0.98, 0.35)
    colors[clr.ModalWindowDarkening]   = ImVec4(0.80, 0.80, 0.80, 0.35)
end
theme()