Squashed 'deps/nostalgia/' changes from e1cfcc8b..e78c4050
e78c4050 [nostalgia/gfx] Cleanup 6b7c5d89 [nostalgia] Update release notes a33a73d7 [nostalgia/gfx/studio/palette] Add preview to color editor git-subtree-dir: deps/nostalgia git-subtree-split: e78c4050462c2ae4fa4347af7f1236763d2b8f8f
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
* Add ability to remember recent projects in config
|
||||
* PaletteEditor: Add RGB key shortcuts for focusing color channels
|
||||
* PaletteEditor: Add color preview to color editor
|
||||
|
||||
# d2025.05.2
|
||||
|
||||
|
@ -307,6 +307,15 @@ void PaletteEditorImGui::drawColorEditor() noexcept {
|
||||
colorInput("Red", r, inputFocused, FocusCmd::Red);
|
||||
colorInput("Green", g, inputFocused, FocusCmd::Green);
|
||||
colorInput("Blue", b, inputFocused, FocusCmd::Blue);
|
||||
// color preview
|
||||
{
|
||||
ImGui::PushStyleColor(
|
||||
ImGuiCol_ChildBg,
|
||||
color32(color16(r, g, b)) | 0xff'00'00'00);
|
||||
ImGui::BeginChild("ColorPreview", {0, 25});
|
||||
ImGui::EndChild();
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
if (ig::PushButton("Apply to all pages", {-1, ig::BtnSz.y})) {
|
||||
std::ignore = pushCommand<ApplyColorAllPagesCommand>(
|
||||
m_pal, m_page, m_selectedColorRow);
|
||||
|
Reference in New Issue
Block a user