From 1b18836c7f5f0dd9aea4e91fbb14265dc8c35c1c Mon Sep 17 00:00:00 2001 From: samuelvenable Date: Fri, 29 Nov 2024 22:29:11 -0500 Subject: [PATCH] yay --- filedialogs/demo/RunUnixFileDialogsExample.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 filedialogs/demo/RunUnixFileDialogsExample.sh diff --git a/filedialogs/demo/RunUnixFileDialogsExample.sh b/filedialogs/demo/RunUnixFileDialogsExample.sh new file mode 100755 index 0000000..0248c7f --- /dev/null +++ b/filedialogs/demo/RunUnixFileDialogsExample.sh @@ -0,0 +1,7 @@ +#!/bin/sh +cd "${0%/*}"; +if [ `uname` = "Darwin" ]; then + env IMGUI_DIALOG_WIDTH=720 IMGUI_DIALOG_HEIGHT=380 IMGUI_DIALOG_THEME=2 IMGUI_TEXT_COLOR_0=1 IMGUI_TEXT_COLOR_1=1 IMGUI_TEXT_COLOR_2=1 IMGUI_HEAD_COLOR_0=0.35 IMGUI_HEAD_COLOR_1=0.35 IMGUI_HEAD_COLOR_2=0.35 IMGUI_AREA_COLOR_0=0.05 IMGUI_AREA_COLOR_1=0.05 IMGUI_AREA_COLOR_2=0.05 IMGUI_BODY_COLOR_0=1 IMGUI_BODY_COLOR_1=1 IMGUI_BODY_COLOR_2=1 IMGUI_POPS_COLOR_0=0.07 IMGUI_POPS_COLOR_1=0.07 IMGUI_POPS_COLOR_2=0.07 ../filedialogs --get-open-filename "Portable Network Graphic (*.png)|*.png|Graphic Interchange Format (*.gif)|*.gif" "Untitled.png"; +else + env IMGUI_DIALOG_PARENT=`xdotool getactivewindow` IMGUI_DIALOG_WIDTH=720 IMGUI_DIALOG_HEIGHT=380 IMGUI_DIALOG_THEME=2 IMGUI_TEXT_COLOR_0=1 IMGUI_TEXT_COLOR_1=1 IMGUI_TEXT_COLOR_2=1 IMGUI_HEAD_COLOR_0=0.35 IMGUI_HEAD_COLOR_1=0.35 IMGUI_HEAD_COLOR_2=0.35 IMGUI_AREA_COLOR_0=0.05 IMGUI_AREA_COLOR_1=0.05 IMGUI_AREA_COLOR_2=0.05 IMGUI_BODY_COLOR_0=1 IMGUI_BODY_COLOR_1=1 IMGUI_BODY_COLOR_2=1 IMGUI_POPS_COLOR_0=0.07 IMGUI_POPS_COLOR_1=0.07 IMGUI_POPS_COLOR_2=0.07 ../filedialogs --get-open-filename "Portable Network Graphic (*.png)|*.png|Graphic Interchange Format (*.gif)|*.gif" "Untitled.png"; +fi