diff --git a/examples/example1/src/main.d b/examples/example1/src/main.d
index 89f45146..2d4a3bd8 100644
--- a/examples/example1/src/main.d
+++ b/examples/example1/src/main.d
@@ -297,11 +297,12 @@ extern (C) int UIAppMain(string[] args) {
dlg.addFilter(FileFilterEntry(UIString("FILTER_ALL_FILES", "All files (*.*)"d), "*.*"));
dlg.addFilter(FileFilterEntry(UIString("FILTER_TEXT_FILES", "Text files (*.txt)"d), "*.txt"));
dlg.addFilter(FileFilterEntry(UIString("FILTER_SOURCE_FILES", "Source files"d), "*.d;*.dd;*.c;*.cc;*.cpp;*.h;*.hpp"));
- dlg.filterIndex = 2;
+ //dlg.filterIndex = 2;
dlg.onDialogResult = delegate(Dialog dlg, const Action result) {
- Log.d("FileDialog.onDialogResult: ", result, " param=", result.stringParam);
- window.showMessageBox(UIString("FileOpen result"d), UIString(toUTF32(result.stringParam)));
- import dlangui.core.stdaction;
+ if (result.id == ACTION_OPEN.id) {
+ Log.d("FileDialog.onDialogResult: ", result, " param=", result.stringParam);
+ window.showMessageBox(UIString("FileOpen result"d), UIString(toUTF32(result.stringParam)));
+ }
};
dlg.show();
diff --git a/res/theme_default.xml b/res/theme_default.xml
index 0973a50d..8aed3d80 100644
--- a/res/theme_default.xml
+++ b/res/theme_default.xml
@@ -143,6 +143,23 @@
fontFamily="SansSerif"
fontSize="16"
/>
+
+