summaryrefslogtreecommitdiff
path: root/tikzit/src/osx/StylePaletteController.m
diff options
context:
space:
mode:
authorJohan Paulsson <gonz@badcode.net>2014-03-25 21:34:12 +0000
committerJohan Paulsson <gonz@badcode.net>2014-03-25 21:34:12 +0000
commit08be64f38faef12393854ee4da484b144752d77e (patch)
tree97622a62ad85572468144cc3b5a8f242a42af7ba /tikzit/src/osx/StylePaletteController.m
parentdb9056504a45f3df48952b79995781a85514f8ba (diff)
gui: adding a couple of preference options
Added preference options for autocompletion and inspectors on top.
Diffstat (limited to 'tikzit/src/osx/StylePaletteController.m')
-rw-r--r--tikzit/src/osx/StylePaletteController.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/tikzit/src/osx/StylePaletteController.m b/tikzit/src/osx/StylePaletteController.m
index 8f87bd9..4fe46be 100644
--- a/tikzit/src/osx/StylePaletteController.m
+++ b/tikzit/src/osx/StylePaletteController.m
@@ -50,7 +50,12 @@
if (nodeStyles == nil) nodeStyles = [NSMutableArray array];
if (edgeStyles == nil) edgeStyles = [NSMutableArray array];
- [[self window] setLevel:NSNormalWindowLevel];
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"net.sourceforge.tikzit.inspectorsontop"] == YES) {
+ [[self window] setLevel:NSFloatingWindowLevel];
+ } else {
+ [[self window] setLevel:NSNormalWindowLevel];
+ }
+
[self showWindow:self];
}