ui stuff + clear notifications
This commit is contained in:
@@ -378,6 +378,7 @@ ImVec2 timerWindow(DrawData& drawData, ApplicationData& appData)
|
||||
// Draw window
|
||||
if (ImGui::Begin(title.c_str(), 0, ImGuiWindowFlags_NoResize))
|
||||
{
|
||||
dropShadowWindowTitle();
|
||||
if (windowHeaderButton(ICON_SETTINGS_FILL))
|
||||
{
|
||||
ImGui::OpenPopup(SETTINGS_POPUP_NAME);
|
||||
@@ -426,6 +427,7 @@ ImVec2 timerWindow(DrawData& drawData, ApplicationData& appData)
|
||||
else
|
||||
{
|
||||
timerData.isTimerActive = false;
|
||||
WinToast::instance()->clear();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -541,6 +543,7 @@ ImVec2 checklistWindow(ApplicationData& appData, const char* title)
|
||||
{
|
||||
if (ImGui::Begin(title, 0, ImGuiWindowFlags_NoResize))
|
||||
{
|
||||
dropShadowWindowTitle();
|
||||
if (windowHeaderButton(ICON_SETTINGS_FILL))
|
||||
{
|
||||
ImGui::OpenPopup(SETTINGS_POPUP_NAME);
|
||||
@@ -731,6 +734,7 @@ ImVec2 baseStationWindow(ApplicationData& appData)
|
||||
{
|
||||
if (ImGui::Begin(std::format("{} Base Stations", ICON_ALARM_WARNING_FILL).c_str(), 0, ImGuiWindowFlags_NoResize))
|
||||
{
|
||||
dropShadowWindowTitle();
|
||||
if (windowHeaderButton(ICON_SETTINGS_FILL))
|
||||
{
|
||||
ImGui::OpenPopup(SETTINGS_POPUP_NAME);
|
||||
@@ -780,6 +784,7 @@ ImVec2 audioDeviceWindow(ApplicationData& appData, std::vector<AudioDevice>& dev
|
||||
{
|
||||
if (ImGui::Begin(title, 0, ImGuiWindowFlags_NoResize))
|
||||
{
|
||||
dropShadowWindowTitle();
|
||||
if (windowHeaderButton(ICON_SETTINGS_FILL))
|
||||
{
|
||||
ImGui::OpenPopup(SETTINGS_POPUP_NAME);
|
||||
@@ -791,7 +796,8 @@ ImVec2 audioDeviceWindow(ApplicationData& appData, std::vector<AudioDevice>& dev
|
||||
ImGui::TableSetupColumn("Volume", ImGuiTableColumnFlags_WidthStretch, 1.);
|
||||
ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, getButtonWidth(ICON_MUSIC_2_FILL));
|
||||
ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, getButtonWidth(ICON_PHONE_FILL));
|
||||
ImGui::TableHeadersRow();
|
||||
|
||||
dropShadowTableHeadersRow();
|
||||
|
||||
for (auto& dev : deviceList)
|
||||
{
|
||||
|
||||
@@ -179,7 +179,7 @@ void setAutostart(bool newValue)
|
||||
void loadUiStyle()
|
||||
{
|
||||
ImGuiStyle& style = ImGui::GetStyle();
|
||||
style.WindowPadding = { 6.f, 12.f };
|
||||
style.WindowPadding = { 10.f, 14.f };
|
||||
style.WindowBorderSize = 0.f;
|
||||
|
||||
style.FramePadding = { 8.f, 4.f };
|
||||
|
||||
Reference in New Issue
Block a user