diff options
Diffstat (limited to 'gedit/resources/css')
-rw-r--r-- | gedit/resources/css/gedit-style-osx.css | 129 | ||||
-rw-r--r-- | gedit/resources/css/gedit-style.css | 31 | ||||
-rw-r--r-- | gedit/resources/css/gedit.adwaita.css | 61 | ||||
-rw-r--r-- | gedit/resources/css/gedit.highcontrast.css | 5 |
4 files changed, 226 insertions, 0 deletions
diff --git a/gedit/resources/css/gedit-style-osx.css b/gedit/resources/css/gedit-style-osx.css new file mode 100644 index 0000000..f3c7c0b --- /dev/null +++ b/gedit/resources/css/gedit-style-osx.css @@ -0,0 +1,129 @@ +@binding-set gtk-osx-editable { + bind "<primary>c" { "copy-clipboard" () }; + bind "<primary>x" { "cut-clipboard" () }; + bind "<primary>v" { "paste-clipboard" () }; + + unbind "<control>c"; + unbind "<control>x"; + unbind "<control>v"; + + bind "<primary>Left" { "move-cursor" (display-line-ends, -1, 0) }; + bind "<primary>KP_Left" { "move-cursor" (display-line-ends, -1, 0) }; + bind "<primary><shift>Left" { "move-cursor" (display-line-ends, -1, 1) }; + bind "<primary><shift>KP_Left" { "move-cursor" (display-line-ends, -1, 1) }; + + bind "<primary>Right" { "move-cursor" (display-line-ends, 1, 0) }; + bind "<primary>KP_Right" { "move-cursor" (display-line-ends, 1, 0) }; + bind "<primary><shift>Right" { "move-cursor" (display-line-ends, 1, 1) }; + bind "<primary><shift>KP_Right" { "move-cursor" (display-line-ends, 1, 1) }; + + unbind "<control>Left"; + unbind "<control>KP_Left"; + unbind "<control><shift>Left"; + unbind "<control><shift>KP_Left"; + unbind "<control>Right"; + unbind "<control>KP_Right"; + unbind "<control><shift>Right"; + unbind "<control><shift>KP_Right"; + + bind "<alt>Right" { "move-cursor" (words, 1, 0) }; + bind "<alt>KP_Right" { "move-cursor" (words, 1, 0) }; + bind "<alt>Left" { "move-cursor" (words, -1, 0) }; + bind "<alt>KP_Left" { "move-cursor" (words, -1, 0) }; + bind "<shift><alt>Right" { "move-cursor" (words, 1, 1) }; + bind "<shift><alt>KP_Right" { "move-cursor" (words, 1, 1) }; + bind "<shift><alt>Left" { "move-cursor" (words, -1, 1) }; + bind "<shift><alt>KP_Left" { "move-cursor" (words, -1, 1) }; + + bind "<alt>Delete" { "delete-from-cursor" (word-ends, 1) }; + bind "<alt>KP_Delete" { "delete-from-cursor" (word-ends, 1) }; + bind "<alt>BackSpace" { "delete-from-cursor" (word-ends, -1) }; + + bind "<primary>Down" { "move-cursor" (buffer-ends, 1, 0) }; + bind "<primary><shift>Down" { "move-cursor" (buffer-ends, 1, 1) }; + bind "<primary>KP_Down" { "move-cursor" (buffer-ends, 1, 0) }; + bind "<primary><shift>KP_Down" { "move-cursor" (buffer-ends, 1, 1) }; + + bind "<primary>Up" { "move-cursor" (buffer-ends, -1, 0) }; + bind "<primary><shift>Up" { "move-cursor" (buffer-ends, -1, 1) }; + bind "<primary>KP_Up" { "move-cursor" (buffer-ends, -1, 0) }; + bind "<primary><shift>KP_Up" { "move-cursor" (buffer-ends, -1, 1) }; + + bind "<primary><alt>I" { "toggle-overwrite" () }; + unbind "Insert"; + + unbind "<control>Down"; + unbind "<control>KP_Down"; + unbind "<control><shift>Down"; + unbind "<control><shift>KP_Down"; + unbind "<control>Up"; + unbind "<control>KP_Up"; + unbind "<control><shift>Up"; + unbind "<control><shift>KP_Up"; +} + +@binding-set gtk-osx-text-entry { + bind "<primary>a" { + "move-cursor" (buffer-ends, -1, 0) + "move-cursor" (buffer-ends, 1, 1) + }; + + unbind "<control>a"; +} + +@binding-set gtk-osx-text-view { + bind "<primary>a" { "select-all" (1) }; + unbind "<control>a"; +} + +@binding-set gtk-osx-tree-view { + bind "<primary>s" { "start-interactive-search" () }; + unbind "<control>s"; +} + +@binding-set gtk-osx-source-view { + bind "<primary>z" { "undo" () }; + unbind "<control>z"; + + bind "<primary><shift>z" { "redo" () }; + unbind "<control><shift>z"; +} + +@binding-set gedit-osx-view { + bind "<primary>d" { "delete-from-cursor" (GTK_DELETE_PARAGRAPHS, 1) }; + unbind "<control>d"; +} + +entry { + -gtk-key-bindings: gtk-osx-editable, gtk-osx-text-entry; +} + +textview { + -gtk-key-bindings: gtk-osx-editable, gtk-osx-text-view; +} + +textview.sourceview { + -gtk-key-bindings: gtk-osx-editable, gtk-osx-text-view, gtk-osx-source-view; +} + +textview.gedit-view { + -gtk-key-bindings: gtk-osx-editable, gtk-osx-text-view, gtk-osx-source-view, gedit-osx-view; +} + +treeview { + -gtk-key-bindings: gtk-osx-tree-view; +} + +notebook { + padding: 0px; +} + +notebook tab { + padding: 4px 2px 2px 2px; +} + +.gedit-side-panel-stack-switcher { + border: 0; + border-radius: 0; + border-bottom: 1px solid @borders; +} diff --git a/gedit/resources/css/gedit-style.css b/gedit/resources/css/gedit-style.css new file mode 100644 index 0000000..eb43a82 --- /dev/null +++ b/gedit/resources/css/gedit-style.css @@ -0,0 +1,31 @@ +.gedit-side-panel-paned.pane-separator:dir(ltr), +.gedit-side-panel-paned.pane-separator:hover:dir(ltr) { + border-radius: 0; + border-width: 0 1px 0 0; +} + +.gedit-side-panel-paned.pane-separator:dir(rtl), +.gedit-side-panel-paned.pane-separator:hover:dir(rtl) { + border-radius: 0; + border-width: 0 0 0 1px; +} + +.gedit-menu-stack-switcher { + padding: 12px; +} + +statusbar frame { + border: none; + padding-left: 6px; + padding-right: 6px; +} + +statusbar button.flat { + border-radius: 0; + border-bottom: none; +} + +GeditFileBrowserWidget .small-button { + padding: 2px 4px; +} + diff --git a/gedit/resources/css/gedit.adwaita.css b/gedit/resources/css/gedit.adwaita.css new file mode 100644 index 0000000..784e72a --- /dev/null +++ b/gedit/resources/css/gedit.adwaita.css @@ -0,0 +1,61 @@ +.gedit-document-panel { + background-color: @sidebar_bg; +} + +.gedit-document-panel:backdrop { + color: #b0b2b2; +} + +.gedit-document-panel row:selected:backdrop { + background-color: #8b8e8f; +} + +.gedit-document-panel-group-row, +.gedit-document-panel-group-row:hover { + border-top: 1px solid alpha(currentColor, 0.3); +} + +.gedit-document-panel-group-row:first-child, +.gedit-document-panel-group-row:first-child:hover { + border-top: 0px; +} + +/* Try to look as the notebook tab close button */ +.gedit-document-panel row button.flat { + padding: 0; + margin-top: 8px; + margin-bottom: 8px; + min-width: 18px; + min-height: 18px; + color: alpha(currentColor,0.3); +} + +.gedit-document-panel row:hover button.flat { + color: alpha(currentColor,0.5); +} + +.gedit-document-panel row button.flat:hover { + color: @theme_fg_color; +} + +statusbar { + border-top: 1px solid @borders; +} + +.gedit-search-slider { + background-color: @theme_base_color; + padding: 6px; + border-color: @borders; + border-radius: 0 0 3px 3px; + border-width: 0 1px 1px 1px; + border-style: solid; +} + +.gedit-search-entry-occurrences-tag { + background-color: @theme_base_color; + background-image: none; + color: shade (@theme_unfocused_fg_color, 0.8); + border: 0px; + margin: 2px; + padding: 2px; +} diff --git a/gedit/resources/css/gedit.highcontrast.css b/gedit/resources/css/gedit.highcontrast.css new file mode 100644 index 0000000..feca0fc --- /dev/null +++ b/gedit/resources/css/gedit.highcontrast.css @@ -0,0 +1,5 @@ +.gedit-search-entry-occurrences-tag { + color: @theme_unfocused_fg_color; + margin: 2px; + padding: 2px; +} |