Skip to content

Commit f89a8cb

Browse files
committed
don't make icons look disabled if they're not
1 parent b936fd4 commit f89a8cb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

SomethingNeedDoing/Gui/MacroEditor.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ private void DrawEditorToolbar(IMacro macro)
6969
private void DrawActionButtons(IMacro macro)
7070
{
7171
var group = new ImGuiEx.EzButtonGroup();
72-
var baseStyle = new ImGuiEx.EzButtonGroup.ButtonStyle() { TextColor = ImGuiColors.DalamudGrey };
7372
var startBtn = GetStartOrResumeAction(macro);
74-
group.AddIconOnly(FontAwesomeIcon.PlayCircle, () => startBtn.action(), startBtn.tooltip, baseStyle);
75-
group.AddIconOnly(FontAwesomeIcon.PauseCircle, () => _scheduler.PauseMacro(macro.Id), "Pause", baseStyle + new ImGuiEx.EzButtonGroup.ButtonStyle() { Condition = () => _scheduler.GetMacroState(macro.Id) is MacroState.Running });
76-
group.AddIconOnly(FontAwesomeIcon.StopCircle, () => _scheduler.StopMacro(macro.Id), "Stop", baseStyle);
77-
group.AddIconOnly(FontAwesomeIcon.Clipboard, () => Copy(macro.Content), "Copy", baseStyle);
73+
group.AddIconOnly(FontAwesomeIcon.PlayCircle, () => startBtn.action(), startBtn.tooltip);
74+
group.AddIconOnly(FontAwesomeIcon.PauseCircle, () => _scheduler.PauseMacro(macro.Id), "Pause", new() { Condition = () => _scheduler.GetMacroState(macro.Id) is MacroState.Running });
75+
group.AddIconOnly(FontAwesomeIcon.StopCircle, () => _scheduler.StopMacro(macro.Id), "Stop");
76+
group.AddIconOnly(FontAwesomeIcon.Clipboard, () => Copy(macro.Content), "Copy");
7877
group.Draw();
7978
}
8079

0 commit comments

Comments
 (0)