diff --git a/data/de.wolfvollprecht.UberWriter.gschema.xml b/data/de.wolfvollprecht.UberWriter.gschema.xml
index 64fcd99..e256002 100644
--- a/data/de.wolfvollprecht.UberWriter.gschema.xml
+++ b/data/de.wolfvollprecht.UberWriter.gschema.xml
@@ -13,6 +13,21 @@
asked to install them manually.
+
+ true
+ Show gradient overlay
+
+ Show a gradient overlay over the text at the top anf bottom of the window.
+ It can cause performance problems to some users
+
+
+
+ true
+ Allow Uberwriter to poll cursor motion
+
+ Used for hidding the headerbar after 3 seconds if the cursor is not moving.
+
+
"/tmp"
Open file base path
diff --git a/data/media/github-md-dark.css b/data/media/github-md-dark.css
new file mode 100644
index 0000000..6df7e7c
--- /dev/null
+++ b/data/media/github-md-dark.css
@@ -0,0 +1,567 @@
+@font-face {
+ font-family: octicons-link;
+ src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZ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CE1hDt4QF+9JOS0nbaaYDCQfwCJ7Au3AHj+LO13FMmm6cl7785vven0kBjHCBhfpYuNa5Ph1c0e2Xu3jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format('woff');
+}
+
+body {
+ -ms-text-size-adjust: 100%;
+ -webkit-text-size-adjust: 100%;
+ line-height: 1.5;
+ color: #EDEDED;
+ background-color: #31373D;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+ font-size: 16px;
+ line-height: 1.5;
+ word-wrap: break-word;
+}
+
+a {
+ background-color: transparent;
+}
+
+a:active,
+a:hover {
+ outline-width: 0;
+}
+
+strong {
+ font-weight: inherit;
+}
+
+strong {
+ font-weight: bolder;
+}
+
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+
+img {
+ border-style: none;
+}
+
+code,
+kbd,
+pre {
+ font-family: monospace, monospace;
+ font-size: 1em;
+}
+
+hr {
+ box-sizing: content-box;
+ height: 0;
+ overflow: visible;
+}
+
+input {
+ font: inherit;
+ margin: 0;
+}
+
+input {
+ overflow: visible;
+}
+
+[type="checkbox"] {
+ box-sizing: border-box;
+ padding: 0;
+}
+
+* {
+ box-sizing: border-box;
+}
+
+input {
+ font-family: inherit;
+ font-size: inherit;
+ line-height: inherit;
+}
+
+a {
+ color: #0366d6;
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+strong {
+ font-weight: 600;
+}
+
+hr {
+ height: 0;
+ margin: 15px 0;
+ overflow: hidden;
+ background: transparent;
+ border: 0;
+ border-bottom: 1px solid #dfe2e5;
+}
+
+hr::before {
+ display: table;
+ content: "";
+}
+
+hr::after {
+ display: table;
+ clear: both;
+ content: "";
+}
+
+table {
+ border-spacing: 0;
+ border-collapse: collapse;
+}
+
+td,
+th {
+ padding: 0;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+h1 {
+ font-size: 32px;
+ font-weight: 600;
+}
+
+h2 {
+ font-size: 24px;
+ font-weight: 600;
+}
+
+h3 {
+ font-size: 20px;
+ font-weight: 600;
+}
+
+h4 {
+ font-size: 16px;
+ font-weight: 600;
+}
+
+h5 {
+ font-size: 14px;
+ font-weight: 600;
+}
+
+h6 {
+ font-size: 12px;
+ font-weight: 600;
+}
+
+p {
+ margin-top: 0;
+ margin-bottom: 10px;
+}
+
+blockquote {
+ margin: 0;
+}
+
+ul,
+ol {
+ padding-left: 0;
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+ol ol,
+ul ol {
+ list-style-type: lower-roman;
+}
+
+ul ul ol,
+ul ol ol,
+ol ul ol,
+ol ol ol {
+ list-style-type: lower-alpha;
+}
+
+dd {
+ margin-left: 0;
+}
+
+code {
+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ font-size: 12px;
+}
+
+pre {
+ margin-top: 0;
+ margin-bottom: 0;
+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ font-size: 12px;
+}
+
+.octicon {
+ vertical-align: text-bottom;
+}
+
+.pl-0 {
+ padding-left: 0 !important;
+}
+
+.pl-1 {
+ padding-left: 4px !important;
+}
+
+.pl-2 {
+ padding-left: 8px !important;
+}
+
+.pl-3 {
+ padding-left: 16px !important;
+}
+
+.pl-4 {
+ padding-left: 24px !important;
+}
+
+.pl-5 {
+ padding-left: 32px !important;
+}
+
+.pl-6 {
+ padding-left: 40px !important;
+}
+
+.markdown-body::before {
+ display: table;
+ content: "";
+}
+
+.markdown-body::after {
+ display: table;
+ clear: both;
+ content: "";
+}
+
+.markdown-body>*:first-child {
+ margin-top: 0 !important;
+}
+
+.markdown-body>*:last-child {
+ margin-bottom: 0 !important;
+}
+
+a:not([href]) {
+ color: inherit;
+ text-decoration: none;
+}
+
+.anchor {
+ float: left;
+ padding-right: 4px;
+ margin-left: -20px;
+ line-height: 1;
+}
+
+.anchor:focus {
+ outline: none;
+}
+
+p,
+blockquote,
+ul,
+ol,
+dl,
+table,
+pre {
+ margin-top: 0;
+ margin-bottom: 16px;
+}
+
+hr {
+ height: 0.25em;
+ padding: 0;
+ margin: 24px 0;
+ background-color: #e1e4e8;
+ border: 0;
+}
+
+blockquote {
+ padding: 0 1em;
+ color: #6a737d;
+ border-left: 0.25em solid #dfe2e5;
+}
+
+blockquote>:first-child {
+ margin-top: 0;
+}
+
+blockquote>:last-child {
+ margin-bottom: 0;
+}
+
+kbd {
+ display: inline-block;
+ padding: 3px 5px;
+ font-size: 11px;
+ line-height: 10px;
+ color: #444d56;
+ vertical-align: middle;
+ background-color: #fafbfc;
+ border: solid 1px #c6cbd1;
+ border-bottom-color: #959da5;
+ border-radius: 3px;
+ box-shadow: inset 0 -1px 0 #959da5;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin-top: 24px;
+ margin-bottom: 16px;
+ font-weight: 600;
+ line-height: 1.25;
+}
+
+h1 .octicon-link,
+h2 .octicon-link,
+h3 .octicon-link,
+h4 .octicon-link,
+h5 .octicon-link,
+h6 .octicon-link {
+ color: #1b1f23;
+ vertical-align: middle;
+ visibility: hidden;
+}
+
+h1:hover .anchor,
+h2:hover .anchor,
+h3:hover .anchor,
+h4:hover .anchor,
+h5:hover .anchor,
+h6:hover .anchor {
+ text-decoration: none;
+}
+
+h1:hover .anchor .octicon-link,
+h2:hover .anchor .octicon-link,
+h3:hover .anchor .octicon-link,
+h4:hover .anchor .octicon-link,
+h5:hover .anchor .octicon-link,
+h6:hover .anchor .octicon-link {
+ visibility: visible;
+}
+
+h1 {
+ padding-bottom: 0.3em;
+ font-size: 2em;
+ border-bottom: 1px solid #eaecef;
+}
+
+h2 {
+ padding-bottom: 0.3em;
+ font-size: 1.5em;
+ border-bottom: 1px solid #eaecef;
+}
+
+h3 {
+ font-size: 1.25em;
+}
+
+h4 {
+ font-size: 1em;
+}
+
+h5 {
+ font-size: 0.875em;
+}
+
+h6 {
+ font-size: 0.85em;
+ color: #6a737d;
+}
+
+ul,
+ol {
+ padding-left: 2em;
+}
+
+ul ul,
+ul ol,
+ol ol,
+ol ul {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+li {
+ word-wrap: break-all;
+}
+
+li>p {
+ margin-top: 16px;
+}
+
+li+li {
+ margin-top: 0.25em;
+}
+
+dl {
+ padding: 0;
+}
+
+dl dt {
+ padding: 0;
+ margin-top: 16px;
+ font-size: 1em;
+ font-style: italic;
+ font-weight: 600;
+}
+
+dl dd {
+ padding: 0 16px;
+ margin-bottom: 16px;
+}
+
+table {
+ display: block;
+ width: 100%;
+ overflow: auto;
+}
+
+table th {
+ font-weight: 600;
+}
+
+table th,
+table td {
+ padding: 6px 13px;
+ border: 1px solid #dfe2e5;
+}
+
+table tr {
+ background-color: #fff;
+ border-top: 1px solid #c6cbd1;
+}
+
+table tr:nth-child(2n) {
+ background-color: #f6f8fa;
+}
+
+img {
+ max-width: 100%;
+ box-sizing: content-box;
+ background-color: #fff;
+}
+
+img[align=right] {
+ padding-left: 20px;
+}
+
+img[align=left] {
+ padding-right: 20px;
+}
+
+code {
+ padding: 0.2em 0.4em;
+ margin: 0;
+ font-size: 85%;
+ background-color: rgba(27,31,35,0.05);
+ color: #1b1f23;
+ border-radius: 3px;
+}
+
+pre {
+ word-wrap: normal;
+}
+
+pre>code {
+ padding: 0;
+ margin: 0;
+ font-size: 100%;
+ word-break: normal;
+ white-space: pre;
+ background: transparent;
+ border: 0;
+}
+
+.highlight {
+ margin-bottom: 16px;
+}
+
+.highlight pre {
+ margin-bottom: 0;
+ word-break: normal;
+}
+
+.highlight pre,
+pre {
+ padding: 16px;
+ overflow: auto;
+ font-size: 85%;
+ line-height: 1.45;
+ background-color: #f6f8fa;
+ border-radius: 3px;
+}
+
+pre code {
+ display: inline;
+ max-width: auto;
+ padding: 0;
+ margin: 0;
+ overflow: visible;
+ line-height: inherit;
+ word-wrap: normal;
+ background-color: transparent;
+ border: 0;
+}
+
+.full-commit .btn-outline:not(:disabled):hover {
+ color: #005cc5;
+ border-color: #005cc5;
+}
+
+kbd {
+ display: inline-block;
+ padding: 3px 5px;
+ font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ line-height: 10px;
+ color: #444d56;
+ vertical-align: middle;
+ background-color: #fafbfc;
+ border: solid 1px #d1d5da;
+ border-bottom-color: #c6cbd1;
+ border-radius: 3px;
+ box-shadow: inset 0 -1px 0 #c6cbd1;
+}
+
+:checked+.radio-label {
+ position: relative;
+ z-index: 1;
+ border-color: #0366d6;
+}
+
+.task-list-item {
+ list-style-type: none;
+}
+
+.task-list-item+.task-list-item {
+ margin-top: 3px;
+}
+
+.task-list-item input {
+ margin: 0 0.2em 0.25em -1.6em;
+ vertical-align: middle;
+}
+
+hr {
+ border-bottom-color: #eee;
+}
diff --git a/data/media/github-md.css b/data/media/github-md.css
new file mode 100644
index 0000000..c014dd6
--- /dev/null
+++ b/data/media/github-md.css
@@ -0,0 +1,566 @@
+@font-face {
+ font-family: octicons-link;
+ src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdT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
+ line-height: 1.5;
+ color: #31373D;
+ background-color: #EDEDED;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+ font-size: 16px;
+ line-height: 1.5;
+ word-wrap: break-word;
+}
+
+a {
+ background-color: transparent;
+}
+
+a:active,
+a:hover {
+ outline-width: 0;
+}
+
+strong {
+ font-weight: inherit;
+}
+
+strong {
+ font-weight: bolder;
+}
+
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+
+img {
+ border-style: none;
+}
+
+code,
+kbd,
+pre {
+ font-family: monospace, monospace;
+ font-size: 1em;
+}
+
+hr {
+ box-sizing: content-box;
+ height: 0;
+ overflow: visible;
+}
+
+input {
+ font: inherit;
+ margin: 0;
+}
+
+input {
+ overflow: visible;
+}
+
+[type="checkbox"] {
+ box-sizing: border-box;
+ padding: 0;
+}
+
+* {
+ box-sizing: border-box;
+}
+
+input {
+ font-family: inherit;
+ font-size: inherit;
+ line-height: inherit;
+}
+
+a {
+ color: #0366d6;
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+strong {
+ font-weight: 600;
+}
+
+hr {
+ height: 0;
+ margin: 15px 0;
+ overflow: hidden;
+ background: transparent;
+ border: 0;
+ border-bottom: 1px solid #dfe2e5;
+}
+
+hr::before {
+ display: table;
+ content: "";
+}
+
+hr::after {
+ display: table;
+ clear: both;
+ content: "";
+}
+
+table {
+ border-spacing: 0;
+ border-collapse: collapse;
+}
+
+td,
+th {
+ padding: 0;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+h1 {
+ font-size: 32px;
+ font-weight: 600;
+}
+
+h2 {
+ font-size: 24px;
+ font-weight: 600;
+}
+
+h3 {
+ font-size: 20px;
+ font-weight: 600;
+}
+
+h4 {
+ font-size: 16px;
+ font-weight: 600;
+}
+
+h5 {
+ font-size: 14px;
+ font-weight: 600;
+}
+
+h6 {
+ font-size: 12px;
+ font-weight: 600;
+}
+
+p {
+ margin-top: 0;
+ margin-bottom: 10px;
+}
+
+blockquote {
+ margin: 0;
+}
+
+ul,
+ol {
+ padding-left: 0;
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+ol ol,
+ul ol {
+ list-style-type: lower-roman;
+}
+
+ul ul ol,
+ul ol ol,
+ol ul ol,
+ol ol ol {
+ list-style-type: lower-alpha;
+}
+
+dd {
+ margin-left: 0;
+}
+
+code {
+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ font-size: 12px;
+}
+
+pre {
+ margin-top: 0;
+ margin-bottom: 0;
+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ font-size: 12px;
+}
+
+.octicon {
+ vertical-align: text-bottom;
+}
+
+.pl-0 {
+ padding-left: 0 !important;
+}
+
+.pl-1 {
+ padding-left: 4px !important;
+}
+
+.pl-2 {
+ padding-left: 8px !important;
+}
+
+.pl-3 {
+ padding-left: 16px !important;
+}
+
+.pl-4 {
+ padding-left: 24px !important;
+}
+
+.pl-5 {
+ padding-left: 32px !important;
+}
+
+.pl-6 {
+ padding-left: 40px !important;
+}
+
+.markdown-body::before {
+ display: table;
+ content: "";
+}
+
+.markdown-body::after {
+ display: table;
+ clear: both;
+ content: "";
+}
+
+.markdown-body>*:first-child {
+ margin-top: 0 !important;
+}
+
+.markdown-body>*:last-child {
+ margin-bottom: 0 !important;
+}
+
+a:not([href]) {
+ color: inherit;
+ text-decoration: none;
+}
+
+.anchor {
+ float: left;
+ padding-right: 4px;
+ margin-left: -20px;
+ line-height: 1;
+}
+
+.anchor:focus {
+ outline: none;
+}
+
+p,
+blockquote,
+ul,
+ol,
+dl,
+table,
+pre {
+ margin-top: 0;
+ margin-bottom: 16px;
+}
+
+hr {
+ height: 0.25em;
+ padding: 0;
+ margin: 24px 0;
+ background-color: #e1e4e8;
+ border: 0;
+}
+
+blockquote {
+ padding: 0 1em;
+ color: #6a737d;
+ border-left: 0.25em solid #dfe2e5;
+}
+
+blockquote>:first-child {
+ margin-top: 0;
+}
+
+blockquote>:last-child {
+ margin-bottom: 0;
+}
+
+kbd {
+ display: inline-block;
+ padding: 3px 5px;
+ font-size: 11px;
+ line-height: 10px;
+ color: #444d56;
+ vertical-align: middle;
+ background-color: #fafbfc;
+ border: solid 1px #c6cbd1;
+ border-bottom-color: #959da5;
+ border-radius: 3px;
+ box-shadow: inset 0 -1px 0 #959da5;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin-top: 24px;
+ margin-bottom: 16px;
+ font-weight: 600;
+ line-height: 1.25;
+}
+
+h1 .octicon-link,
+h2 .octicon-link,
+h3 .octicon-link,
+h4 .octicon-link,
+h5 .octicon-link,
+h6 .octicon-link {
+ color: #1b1f23;
+ vertical-align: middle;
+ visibility: hidden;
+}
+
+h1:hover .anchor,
+h2:hover .anchor,
+h3:hover .anchor,
+h4:hover .anchor,
+h5:hover .anchor,
+h6:hover .anchor {
+ text-decoration: none;
+}
+
+h1:hover .anchor .octicon-link,
+h2:hover .anchor .octicon-link,
+h3:hover .anchor .octicon-link,
+h4:hover .anchor .octicon-link,
+h5:hover .anchor .octicon-link,
+h6:hover .anchor .octicon-link {
+ visibility: visible;
+}
+
+h1 {
+ padding-bottom: 0.3em;
+ font-size: 2em;
+ border-bottom: 1px solid #eaecef;
+}
+
+h2 {
+ padding-bottom: 0.3em;
+ font-size: 1.5em;
+ border-bottom: 1px solid #eaecef;
+}
+
+h3 {
+ font-size: 1.25em;
+}
+
+h4 {
+ font-size: 1em;
+}
+
+h5 {
+ font-size: 0.875em;
+}
+
+h6 {
+ font-size: 0.85em;
+ color: #6a737d;
+}
+
+ul,
+ol {
+ padding-left: 2em;
+}
+
+ul ul,
+ul ol,
+ol ol,
+ol ul {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+li {
+ word-wrap: break-all;
+}
+
+li>p {
+ margin-top: 16px;
+}
+
+li+li {
+ margin-top: 0.25em;
+}
+
+dl {
+ padding: 0;
+}
+
+dl dt {
+ padding: 0;
+ margin-top: 16px;
+ font-size: 1em;
+ font-style: italic;
+ font-weight: 600;
+}
+
+dl dd {
+ padding: 0 16px;
+ margin-bottom: 16px;
+}
+
+table {
+ display: block;
+ width: 100%;
+ overflow: auto;
+}
+
+table th {
+ font-weight: 600;
+}
+
+table th,
+table td {
+ padding: 6px 13px;
+ border: 1px solid #dfe2e5;
+}
+
+table tr {
+ background-color: #fff;
+ border-top: 1px solid #c6cbd1;
+}
+
+table tr:nth-child(2n) {
+ background-color: #f6f8fa;
+}
+
+img {
+ max-width: 100%;
+ box-sizing: content-box;
+ background-color: #fff;
+}
+
+img[align=right] {
+ padding-left: 20px;
+}
+
+img[align=left] {
+ padding-right: 20px;
+}
+
+code {
+ padding: 0.2em 0.4em;
+ margin: 0;
+ font-size: 85%;
+ background-color: rgba(27,31,35,0.05);
+ border-radius: 3px;
+}
+
+pre {
+ word-wrap: normal;
+}
+
+pre>code {
+ padding: 0;
+ margin: 0;
+ font-size: 100%;
+ word-break: normal;
+ white-space: pre;
+ background: transparent;
+ border: 0;
+}
+
+.highlight {
+ margin-bottom: 16px;
+}
+
+.highlight pre {
+ margin-bottom: 0;
+ word-break: normal;
+}
+
+.highlight pre,
+pre {
+ padding: 16px;
+ overflow: auto;
+ font-size: 85%;
+ line-height: 1.45;
+ background-color: #f6f8fa;
+ border-radius: 3px;
+}
+
+pre code {
+ display: inline;
+ max-width: auto;
+ padding: 0;
+ margin: 0;
+ overflow: visible;
+ line-height: inherit;
+ word-wrap: normal;
+ background-color: transparent;
+ border: 0;
+}
+
+.full-commit .btn-outline:not(:disabled):hover {
+ color: #005cc5;
+ border-color: #005cc5;
+}
+
+kbd {
+ display: inline-block;
+ padding: 3px 5px;
+ font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ line-height: 10px;
+ color: #444d56;
+ vertical-align: middle;
+ background-color: #fafbfc;
+ border: solid 1px #d1d5da;
+ border-bottom-color: #c6cbd1;
+ border-radius: 3px;
+ box-shadow: inset 0 -1px 0 #c6cbd1;
+}
+
+:checked+.radio-label {
+ position: relative;
+ z-index: 1;
+ border-color: #0366d6;
+}
+
+.task-list-item {
+ list-style-type: none;
+}
+
+.task-list-item+.task-list-item {
+ margin-top: 3px;
+}
+
+.task-list-item input {
+ margin: 0 0.2em 0.25em -1.6em;
+ vertical-align: middle;
+}
+
+hr {
+ border-bottom-color: #eee;
+}
diff --git a/data/media/style.css b/data/media/style.css
index b72c172..9cdae4a 100644
--- a/data/media/style.css
+++ b/data/media/style.css
@@ -4,7 +4,7 @@
inclusion in templates
*/
-@define-color dark_bg #333;
+@define-color dark_bg #31373D;
@define-color light_bg #EDEDED;
@binding-set window-bindings {
diff --git a/uberwriter/UberwriterExportDialog.py b/uberwriter/UberwriterExportDialog.py
index a43820a..f8ca6ca 100644
--- a/uberwriter/UberwriterExportDialog.py
+++ b/uberwriter/UberwriterExportDialog.py
@@ -213,7 +213,7 @@ class Export:
args.append("-o%s.odt" % basename)
elif export_format == "html":
- css = helpers.get_media_file('uberwriter.css')
+ css = helpers.get_media_file('github-md.css')
relativize = helpers.get_script_path('relative_to_absolute.lua')
task_list = helpers.get_script_path('task-list.lua')
args.append("-c%s" % css)
diff --git a/uberwriter/UberwriterWindow.py b/uberwriter/UberwriterWindow.py
index 3cd143b..885400b 100644
--- a/uberwriter/UberwriterWindow.py
+++ b/uberwriter/UberwriterWindow.py
@@ -104,8 +104,10 @@ class UberwriterWindow(Gtk.ApplicationWindow):
self.status_bar_visible = True
self.was_motion = True
self.buffer_modified_for_status_bar = False
- self.connect("motion-notify-event", self.on_motion_notify)
- GObject.timeout_add(3000, self.poll_for_motion)
+
+ if self.settings.get_value("poll-motion"):
+ self.connect("motion-notify-event", self.on_motion_notify)
+ GObject.timeout_add(3000, self.poll_for_motion)
self.accel_group = Gtk.AccelGroup()
self.add_accel_group(self.accel_group)
@@ -146,7 +148,12 @@ class UberwriterWindow(Gtk.ApplicationWindow):
self.scrolled_window.add(self.text_editor)
self.alignment_padding = 40
self.editor_viewport = self.builder.get_object('editor_viewport')
- self.scrolled_window.connect_after("draw", self.draw_gradient)
+
+ # some people seems to have performance problems with the overlay.
+ # Let them disable it
+
+ if self.settings.get_value("gradient-overlay"):
+ self.scrolled_window.connect_after("draw", self.draw_gradient)
self.smooth_scroll_starttime = 0
self.smooth_scroll_endtime = 0
@@ -852,9 +859,9 @@ class UberwriterWindow(Gtk.ApplicationWindow):
# Set the styles according the color theme
if self.settings.get_value("dark-mode"):
- stylesheet = helpers.get_media_path('uberwriter_dark.css')
+ stylesheet = helpers.get_media_path('github-md-dark.css')
else:
- stylesheet = helpers.get_media_path('uberwriter.css')
+ stylesheet = helpers.get_media_path('github-md.css')
args = ['pandoc',
'-s',