2014-07-06 20:35:24 +00:00
|
|
|
/*
|
|
|
|
TODO:
|
|
|
|
Look into compiling resources with glib-compile-resource etc. for
|
|
|
|
inclusion in templates
|
|
|
|
*/
|
|
|
|
|
2014-09-01 21:07:18 +00:00
|
|
|
@define-color dark_bg #333;
|
2015-02-12 18:12:02 +00:00
|
|
|
@define-color light_editor_bg #EDEDED;
|
2014-09-01 21:07:18 +00:00
|
|
|
|
2014-08-30 08:22:01 +00:00
|
|
|
@binding-set window-bindings {
|
|
|
|
bind "<ctl>n" { "new-file" () };
|
|
|
|
bind "<ctl>o" { "open-file" () };
|
|
|
|
bind "<ctl>s" { "save-file" () };
|
|
|
|
bind "<ctl><shift>s" { "save-file-as" () };
|
|
|
|
bind "<ctl>d" { "toggle-focusmode" () };
|
|
|
|
bind "<ctl>p" { "toggle-preview" () };
|
|
|
|
bind "<ctl>w" { "close-window" () };
|
2014-09-01 21:07:18 +00:00
|
|
|
bind "<ctl>f" { "toggle-search" () };
|
2016-02-05 22:52:43 +00:00
|
|
|
bind "<ctl><shift>b" { "toggle-bibtex" () };
|
2014-09-01 21:07:18 +00:00
|
|
|
bind "<ctl><shift>r" { "toggle-search-replace" () };
|
|
|
|
bind "<ctl><shift>f" { "toggle-search-replace" () };
|
2014-08-30 08:22:01 +00:00
|
|
|
bind "F11" { "toggle-fullscreen" () };
|
2014-10-02 17:02:59 +00:00
|
|
|
bind "F7" { "toggle-spellcheck" () };
|
2014-08-30 08:22:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@binding-set editor-bindings {
|
|
|
|
bind "<ctl>i" { "insert-italic" () };
|
|
|
|
bind "<ctl>b" { "insert-bold" () };
|
|
|
|
bind "<ctl>r" { "insert-hrule" () };
|
|
|
|
bind "<ctl>u" { "insert-ulistitem" () };
|
|
|
|
bind "<ctl>h" { "insert-heading" () };
|
|
|
|
bind "<ctl>z" { "undo" () };
|
|
|
|
bind "<ctl>y" { "redo" () };
|
2014-10-04 22:18:17 +00:00
|
|
|
bind "<ctl><shift>d" { "insert-strikeout" () };
|
2014-10-02 17:02:59 +00:00
|
|
|
/*bind "<ctl>t" { "insert-at-cursor" ('[ ] ') };*/
|
2014-08-30 08:22:01 +00:00
|
|
|
bind "<ctl><shift>z" { "redo" () };
|
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.uberwriter_window {
|
2017-12-07 06:56:39 +00:00
|
|
|
-gtk-key-bindings: window-bindings;
|
2015-02-12 18:10:09 +00:00
|
|
|
/*border-radius: 7px 7px 3px 3px;*/
|
2015-05-19 22:51:02 +00:00
|
|
|
background: @light_editor_bg;
|
2014-07-06 20:35:24 +00:00
|
|
|
}
|
2014-08-30 08:22:01 +00:00
|
|
|
|
2015-05-19 22:51:02 +00:00
|
|
|
.uberwriter_window.small .uberwriter-editor {
|
2017-12-07 06:56:39 +00:00
|
|
|
font-family: 'Fira Mono', monospace;
|
|
|
|
font-size: 12px;
|
2014-09-01 21:07:18 +00:00
|
|
|
}
|
2015-05-19 22:51:02 +00:00
|
|
|
.uberwriter_window GtkGrid {
|
2015-05-19 20:32:55 +00:00
|
|
|
background-color: @light_editor_bg;
|
2014-07-06 20:35:24 +00:00
|
|
|
}
|
2014-08-30 08:22:01 +00:00
|
|
|
|
2015-05-19 22:51:02 +00:00
|
|
|
.uberwriter_window.dark_mode GtkGrid,
|
|
|
|
.uberwriter_window.dark_mode GtkScrolledWindow {
|
|
|
|
background-color: @dark_bg;
|
2014-09-01 21:07:18 +00:00
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
#UberwriterWindow.medium .uberwriter-editor {
|
2017-12-07 06:56:39 +00:00
|
|
|
font-family: 'Fira Mono', monospace;
|
|
|
|
font-size: 15px;
|
2014-09-01 21:07:18 +00:00
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
#UberwriterWindow.large .uberwriter-editor {
|
2017-12-07 06:56:39 +00:00
|
|
|
font-family: 'Fira Mono', monospace;
|
|
|
|
font-size: 18px;
|
2014-09-01 21:07:18 +00:00
|
|
|
}
|
|
|
|
|
2014-10-02 17:02:59 +00:00
|
|
|
#UberwriterWindow GtkAlignment {
|
|
|
|
margin-top: 30px;
|
|
|
|
margin-bottom: 60px;
|
|
|
|
}
|
2014-09-15 13:55:06 +00:00
|
|
|
|
2016-02-05 22:52:43 +00:00
|
|
|
#titlebar_revealer {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2015-05-19 22:51:02 +00:00
|
|
|
.uberwriter_window.dark_mode {
|
2014-09-01 21:07:18 +00:00
|
|
|
background: #333;
|
|
|
|
}
|
|
|
|
|
2015-05-19 22:51:02 +00:00
|
|
|
.uberwriter_window.dark_mode .uberwriter-editor {
|
2014-09-01 21:07:18 +00:00
|
|
|
color: #CCC;
|
2015-02-21 20:33:50 +00:00
|
|
|
background: @dark_bg;
|
2017-12-07 06:56:39 +00:00
|
|
|
/*-GtkWidget-cursor-color: shade(#4D9FCE, 0.9);*/
|
2014-09-01 21:07:18 +00:00
|
|
|
}
|
|
|
|
|
2014-08-30 08:22:01 +00:00
|
|
|
.scrollbars-junction,
|
|
|
|
.scrollbar.trough {
|
2015-05-19 22:51:02 +00:00
|
|
|
background: transparent;
|
2014-08-30 08:22:01 +00:00
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.uberwriter-editor {
|
2014-07-06 20:35:24 +00:00
|
|
|
border: none;
|
2015-05-19 22:51:02 +00:00
|
|
|
background-color: transparent;
|
2014-07-06 20:35:24 +00:00
|
|
|
color: #222;
|
2017-12-07 06:56:39 +00:00
|
|
|
/*-GtkWidget-cursor-color: shade(#4D9FCE, 0.9);*/
|
|
|
|
/*-GtkWidget-cursor-aspect-ratio: 0.1;*/
|
|
|
|
-gtk-key-bindings: editor-bindings;
|
2014-07-06 20:35:24 +00:00
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.uberwriter-editor:selected {
|
2014-09-01 21:07:18 +00:00
|
|
|
background-color: #4D9FCE;
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.uberwriter-editor GtkButton {
|
2014-07-06 20:35:24 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2014-08-30 08:22:01 +00:00
|
|
|
/*background: #CCC;*/
|
2014-07-06 20:35:24 +00:00
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.uberwriter-editor GtkToolbar {
|
2014-08-30 08:22:01 +00:00
|
|
|
/*background: transparent;*/
|
2014-07-06 20:35:24 +00:00
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.status_bar_box GtkLabel {
|
2014-07-06 20:35:24 +00:00
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.status_bar_box GtkButton {
|
2014-07-06 20:35:24 +00:00
|
|
|
/* finding reset */
|
|
|
|
background-color: initial;
|
|
|
|
text-shadow: inherit;
|
2017-12-07 06:56:39 +00:00
|
|
|
/*icon-shadow: inherit;*/
|
2014-07-06 20:35:24 +00:00
|
|
|
box-shadow: initial;
|
|
|
|
background-clip: initial;
|
|
|
|
background-origin: initial;
|
|
|
|
background-size: initial;
|
|
|
|
background-position: initial;
|
|
|
|
background-repeat: initial;
|
|
|
|
background-image: initial;
|
|
|
|
border-image-source: initial;
|
|
|
|
border-image-repeat: initial;
|
|
|
|
border-image-slice: initial;
|
|
|
|
border-image-width: initial;
|
|
|
|
|
|
|
|
border-style: none;
|
|
|
|
-GtkButton-images: true;
|
|
|
|
border-radius: 2px;
|
|
|
|
color: #666;
|
|
|
|
padding: 3px 5px;
|
2017-12-07 06:56:39 +00:00
|
|
|
/*
|
2014-07-06 20:35:24 +00:00
|
|
|
-GtkButton-child-displacement-y: 0px;
|
|
|
|
-GtkButton-child-displacement-x: 0px;
|
|
|
|
-GtkButton-default-border: 0;
|
|
|
|
-GtkButton-image-spacing: 5px;
|
|
|
|
-GtkButton-interior-focus: false;
|
|
|
|
-GtkButton-inner-border: 0;
|
2017-12-07 06:56:39 +00:00
|
|
|
*/
|
2014-07-06 20:35:24 +00:00
|
|
|
transition: 500ms ease-in;
|
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.status_bar_box GtkButton:hover,
|
|
|
|
.status_bar_box GtkButton:active:hover {
|
2014-07-06 20:35:24 +00:00
|
|
|
transition: 0s ease-in;
|
|
|
|
color: #333;
|
|
|
|
background: #EEE;
|
|
|
|
}
|
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.status_bar_box GtkButton:active {
|
2014-07-06 20:35:24 +00:00
|
|
|
color: #EEE;
|
|
|
|
background-color: #EEE;
|
|
|
|
background-image: none;
|
|
|
|
box-shadow: 0 0 2px rgba(0,0,0,0.4)
|
|
|
|
}
|
2015-05-19 20:32:55 +00:00
|
|
|
.dark_mode .status_bar_box GtkButton {
|
2014-09-11 15:44:50 +00:00
|
|
|
|
2014-09-01 21:07:18 +00:00
|
|
|
}
|
2015-05-19 20:32:55 +00:00
|
|
|
.dark_mode .status_bar_box GtkButton:hover,
|
|
|
|
.dark_mode .status_bar_box GtkButton:active {
|
2014-09-01 21:07:18 +00:00
|
|
|
background-color: shade(@dark_bg, 0.8);
|
|
|
|
}
|
2014-07-06 20:35:24 +00:00
|
|
|
|
2015-05-19 20:32:55 +00:00
|
|
|
.status_bar_box GtkSeparator {
|
2014-07-06 20:35:24 +00:00
|
|
|
border-color: #999;
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#PreviewMenuItem GtkImage {
|
|
|
|
border-radius: 2px;
|
|
|
|
color: #666;
|
|
|
|
padding: 3px 5px;
|
|
|
|
border: none;
|
|
|
|
background: #FFF;
|
|
|
|
}
|
|
|
|
|
|
|
|
#UberwriterWindow GtkTreeView {
|
|
|
|
color: #333;
|
2014-08-30 08:22:01 +00:00
|
|
|
font-size: 10px;
|
2014-09-01 21:07:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#LexikonBubble {
|
2017-12-07 06:56:39 +00:00
|
|
|
/*font: serif 10;*/
|
|
|
|
font-family: serif;
|
|
|
|
font-size: 10px;
|
2014-10-02 17:02:59 +00:00
|
|
|
background: #FFF;
|
|
|
|
border-radius: 4px;
|
|
|
|
margin: 5px;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#QuickPreviewPopup {
|
|
|
|
padding: 5px;
|
|
|
|
margin: 5px;
|
|
|
|
border: 1px solid #333;
|
|
|
|
/*background: #FFF;*/
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#LexikonBubble GtkLabel {
|
|
|
|
/*padding: 5px;*/
|
|
|
|
}
|
|
|
|
|
|
|
|
#LexikonBubble {
|
|
|
|
border: 5px solid #FFF;
|
2014-09-15 13:55:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#LexikonBubble .lexikon_heading {
|
2017-12-07 06:56:39 +00:00
|
|
|
/*font: serif 12;*/
|
|
|
|
font-family: serif;
|
|
|
|
font-size: 12px;
|
2014-09-15 13:55:06 +00:00
|
|
|
padding-bottom: 5px;
|
2014-10-02 17:02:59 +00:00
|
|
|
padding-top: 5px;
|
2014-09-15 13:55:06 +00:00
|
|
|
font-weight: bold;
|
2014-10-02 17:02:59 +00:00
|
|
|
padding-left: 10px;
|
2014-09-15 13:55:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#LexikonBubble .lexikon_num {
|
|
|
|
padding-right: 5px;
|
2014-10-02 17:02:59 +00:00
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#UberwriterWindow #AutoCorrect {
|
|
|
|
padding: 10px;
|
|
|
|
background: #FFF;
|
|
|
|
/*box-shadow: 0 0 5px #000;*/
|
|
|
|
border: 1px solid #BCD1EB;
|
|
|
|
border-radius: 3px 10px 10px 3px;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
|
|
|
|
#UberwriterWindow #AutoCorrect GtkLabel {
|
|
|
|
padding: 3px 5px;
|
2017-12-07 06:56:39 +00:00
|
|
|
font-family: sans-serif;
|
2014-10-02 17:02:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#UberwriterWindow #AutoCorrect GtkImage {
|
|
|
|
padding: 3px 5px;
|
2015-05-19 20:32:55 +00:00
|
|
|
}
|