diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..cba60c0 --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,52 @@ +{ + "permissions": { + "allow": [ + "Bash(export PATH=\"$HOME/.cargo/bin:$PATH\")", + "Bash(cargo test:*)", + "Bash(where link.exe)", + "Bash(rustup show:*)", + "Bash(cargo clean:*)", + "Read(//c/Program Files/Microsoft Visual Studio/**)", + "Read(//c/Program Files \\(x86\\)/Microsoft Visual Studio/**)", + "Read(//c//**)", + "Read(//c/Users/SSAFY/miniforge3/Library/bin/**)", + "Read(//c/Users/SSAFY/miniforge3/Library/mingw-w64/**)", + "Read(//c/Users/SSAFY/miniforge3/**)", + "Bash(ls C:/Users/SSAFY/miniforge3/Library/bin/ld*)", + "Bash(ls C:/Users/SSAFY/miniforge3/Library/mingw-w64/bin/ld*)", + "Bash(conda install:*)", + "Bash(C:/Users/SSAFY/miniforge3/Scripts/conda.exe install:*)", + "Bash(export PATH=$HOME/.cargo/bin:$PATH)", + "Read(//c/Users/SSAFY/Desktop/projects/voltex/**)", + "Bash(export PATH=\"$HOME/.cargo/bin:/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64:$PATH\")", + "Bash(cmd //C \"call \\\\\"C:\\\\\\\\Program Files\\\\\\\\Microsoft Visual Studio\\\\\\\\2022\\\\\\\\Community\\\\\\\\VC\\\\\\\\Auxiliary\\\\\\\\Build\\\\\\\\vcvarsall.bat\\\\\" x64 >nul 2>&1 && echo LIB=%LIB% && echo INCLUDE=%INCLUDE%\")", + "Bash(ls '/c/Program Files \\(x86\\)/Windows Kits/')", + "Bash(find '/c/Program Files \\(x86\\)/Windows Kits' -name kernel32.lib)", + "Bash(find '/c/Program Files \\(x86\\)/Windows Kits/10' -name kernel32.lib)", + "Bash(ls:*)", + "Bash(export PATH=\"$HOME/.cargo/bin:$PATH\" MSVC_LIB=\"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/lib/x64\" SDK_UM=\"/c/Program Files \\(x86\\)/Windows Kits/10/Lib/10.0.26100.0/um/x64\" SDK_UCRT=\"/c/Program Files \\(x86\\)/Windows Kits/10/Lib/10.0.26100.0/ucrt/x64\" export LIB=\"$MSVC_LIB;$SDK_UM;$SDK_UCRT\" __NEW_LINE_dfaf9ba8c4cc16a9__ MSVC_INC=\"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/include\" SDK_INC=\"/c/Program Files \\(x86\\)/Windows Kits/10/Include/10.0.26100.0/ucrt\" SDK_UM_INC=\"/c/Program Files \\(x86\\)/Windows Kits/10/Include/10.0.26100.0/um\" SDK_SHARED_INC=\"/c/Program Files \\(x86\\)/Windows Kits/10/Include/10.0.26100.0/shared\" export INCLUDE=\"$MSVC_INC;$SDK_INC;$SDK_UM_INC;$SDK_SHARED_INC\" __NEW_LINE_dfaf9ba8c4cc16a9__ export PATH=\"/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64:$PATH\" __NEW_LINE_dfaf9ba8c4cc16a9__ cargo test --workspace)", + "Bash(find '/c/Program Files \\(x86\\)/Windows Kits' -name dbghelp.lib)", + "Bash(find /c/Users/SSAFY/Desktop/projects/voltex -name *.rs -path */examples*)", + "Bash(git add:*)", + "Bash(git commit:*)", + "Bash(cargo build:*)", + "Bash(cargo run:*)", + "Bash(cargo doc:*)", + "Bash(cargo metadata:*)", + "Bash(python3 -c \"import sys,json; d=json.load\\(sys.stdin\\); pkgs=[p for p in d[''''packages''''] if p[''''name'''']==''''wgpu'''']; feats=pkgs[0][''''features''''] if pkgs else {}; print\\([f for f in feats if ''''ray'''' in f.lower\\(\\)]\\)\")", + "Read(//c/Users/SSAFY/Desktop/projects/voltex/$HOME/.cargo/registry/src/*/wgpu-28.*/**)", + "Bash(find /c/Users/SSAFY/.cargo/registry/src -name *.rs -path *wgpu_types*)", + "Bash(xargs grep:*)", + "Bash(find /c/Users/SSAFY/.cargo/registry/src -name *.rs)", + "Bash(find /c/Users/SSAFY/.cargo/registry/src -name *.rs -path *wgpu*)", + "Bash(find /c/Users/SSAFY/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-28.0.0/src -name *.rs)", + "Bash(grep -r ExperimentalFeatures C:/Users/SSAFY/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-core-*/src/)", + "Bash(curl -sL https://www.lua.org/ftp/lua-5.4.7.tar.gz -o /tmp/lua-5.4.7.tar.gz)", + "Read(//tmp/**)", + "Bash(mkdir -p C:/Users/SSAFY/Desktop/projects/voltex/crates/voltex_script/lua)", + "Read(//c/tmp/**)", + "Bash(tar xzf:*)", + "Bash(cp lua-5.4.7/src/*.c lua-5.4.7/src/*.h C:/Users/SSAFY/Desktop/projects/voltex/crates/voltex_script/lua/)" + ] + } +} diff --git a/crates/voltex_editor/src/widgets.rs b/crates/voltex_editor/src/widgets.rs index bc2c647..31d5dff 100644 --- a/crates/voltex_editor/src/widgets.rs +++ b/crates/voltex_editor/src/widgets.rs @@ -2,9 +2,9 @@ use crate::ui_context::UiContext; // Color palette const COLOR_BG: [u8; 4] = [0x2B, 0x2B, 0x2B, 0xFF]; -const COLOR_BUTTON: [u8; 4] = [0x44, 0x44, 0x44, 0xFF]; -const COLOR_BUTTON_HOT: [u8; 4] = [0x55, 0x55, 0x55, 0xFF]; -const COLOR_BUTTON_ACTIVE: [u8; 4] = [0x66, 0x66, 0x66, 0xFF]; +const COLOR_BUTTON: [u8; 4] = [0x44, 0x44, 0x55, 0xFF]; +const COLOR_BUTTON_HOT: [u8; 4] = [0x55, 0x66, 0x88, 0xFF]; +const COLOR_BUTTON_ACTIVE: [u8; 4] = [0x44, 0x88, 0xFF, 0xFF]; const COLOR_TEXT: [u8; 4] = [0xEE, 0xEE, 0xEE, 0xFF]; const COLOR_PANEL: [u8; 4] = [0x33, 0x33, 0x33, 0xFF]; const COLOR_SLIDER_BG: [u8; 4] = [0x44, 0x44, 0x44, 0xFF]; diff --git a/examples/editor_demo/src/main.rs b/examples/editor_demo/src/main.rs index 0785df2..db7bbdd 100644 --- a/examples/editor_demo/src/main.rs +++ b/examples/editor_demo/src/main.rs @@ -127,6 +127,7 @@ impl ApplicationHandler for EditorDemoApp { // Begin UI frame state.ui.begin_frame(mx as f32, my as f32, mouse_down); + // Draw widgets inside a panel state.ui.begin_panel("Debug", 10.0, 10.0, 250.0, 400.0); state.ui.text("Voltex Editor Demo");