aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/libkvitheme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/theme/libkvitheme.cpp')
-rw-r--r--src/modules/theme/libkvitheme.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/theme/libkvitheme.cpp b/src/modules/theme/libkvitheme.cpp
index 208b27190..dff7d4f05 100644
--- a/src/modules/theme/libkvitheme.cpp
+++ b/src/modules/theme/libkvitheme.cpp
@@ -263,14 +263,17 @@ static bool theme_kvs_cmd_screenshot(KviKvsModuleCommandCall * c)
@short:
Shows the theme theme management editor
@syntax:
- theme.dialog
+ theme.dialog [-t]
@description:
- Shows the theme theme management editor
+ Shows the theme theme management editor[br]
+ If the [-t] switch is used, the dialog is opened as toplevel window,
+ otherwise it is opened as part of the current frame window.[br]
*/
-static bool theme_kvs_cmd_dialog(KviKvsModuleCommandCall *)
+static bool theme_kvs_cmd_dialog(KviKvsModuleCommandCall *c)
{
- KviThemeManagementDialog::display();
+
+ KviThemeManagementDialog::display(c->hasSwitch('t',"toplevel"));
return true;
}