Commit Graph

544 Commits (16382d9574ab380bfab449ab8477ac61a864465f)
 

Author SHA1 Message Date
Manuel Genovés 258000b300 remove unneeded files 2019-04-01 18:06:57 +02:00
Manuel Genovés d19068bc2c move all modules to /uberwriter 2019-04-01 18:00:17 +02:00
somas95 0097ba667e
Merge pull request #129 from UberWriter/styles
A lot of improvements made by @goncalossilva:

    Fix #112
    Improve the themes support:
        Clean all the CSS involved
        Encapsulate theme handling
        Reload preview when theme changes
        Fix fonts on the preview mode
        Add support for high contrast themes
    Add Hemingway mode
2019-04-01 16:48:01 +02:00
somas95 97fd6d62b4
Merge pull request #128 from goncalossilva/ft.hemingway
Adds Hemingway Mode
2019-03-28 20:18:42 +01:00
Gonçalo Silva 3f87bd1d22 Add Hemingway Mode
Closes #40
2019-03-27 02:29:29 +00:00
Manuel Genovés 6d7bfe82cb unclutter the terminal output 2019-03-26 22:02:05 +01:00
somas95 fc0c68f41c
Merge pull request #127 from goncalossilva/styles
Preview improvements
2019-03-26 20:25:22 +01:00
Gonçalo Silva bef52648c7 Remove hard-coded colors from MarkupBuffer
Instead, use colors set in the theme.
2019-03-26 15:09:21 +00:00
Gonçalo Silva 152db98f8a Add script used to generate theme colors
Theme colors are originally based on GitHub's theme.

This script (slightly) offsets them to match the color pallete of the
specified theme automatically, and prints them out.

While the adjustments are meant to be minor, color contrast should still
be verified.

Finally, a few themes should not be automated in this way. For example,
the high contrast themes are meant to be purely black & white.
2019-03-26 15:09:21 +00:00
Gonçalo Silva 95e6d89514 Add support for HighContrast and HighContrastInverse themes 2019-03-26 15:09:21 +00:00
Gonçalo Silva 52f1c9f692 Add back support for Arc, Arc-Darker and Arc-Dark themes 2019-03-26 15:09:21 +00:00
Gonçalo Silva e7359c5776 Encapsulate theme handling
The Theme class encapsulates theme handling, by listing default themes
and providing means to access their gtk/web css.

Besides cleaning things up, it makes it easy to support custom themes
in the future. The user just needs to provide two CSS files, and we'll
be able to instantiate and use a Theme from that.
2019-03-26 15:09:21 +00:00
Gonçalo Silva ea566b8d73 Make preview responsive
Uses the same breakpoints as the text editor.
2019-03-26 15:07:11 +00:00
Gonçalo Silva bbc4cec049 Add font assets 2019-03-24 21:52:52 +00:00
Gonçalo Silva da7bf940f3 Uniformize font-face font-family declarations 2019-03-24 21:37:05 +00:00
somas95 52c0e87765
Merge pull request #126 from goncalossilva/ft.preview_improvements
Ft.preview improvements
2019-03-24 16:56:07 +01:00
Gonçalo Silva 6a2de711cf Reload preview when theme changes 2019-03-24 05:25:51 +00:00
Gonçalo Silva 174e027076 Revert "add debug flag to webview"
This reverts commit 43c9584369.
2019-03-24 04:57:06 +00:00
Gonçalo Silva 928254e992 Fix, cleanup and improve preview CSS
Fixes #121. Additional, fixes include:
* Light tables, title/hr underlines, code and quote blocks on the
dark theme
* Scrollbar not rendering on top of content

Cleanup includes:
* Removal of css rules that are internal to github (eg. octicon)
* Merging of duplicate or overridden declarations
* De-duplicating light and dark theme using import + custom properties

Improvements include:
* Using Fira / Fira Mono for rendering (as is done in the text editor)
* Using relative units as much as possible, making it much easier to
use a responsive design in the future
* Using the same background color for a more seamless experience
* Adjusting color contrast for the background changes, ensuring proper
accessibility while still using GitHub's style
2019-03-24 03:50:08 +00:00
Gonçalo Silva 4b146f69e6 Fix preview flash on toggle
While WebKit2 is loading, it renders a blank (white) page.
This causes it to flash briefly, while the content is not yet loaded.

Waiting for it to finish using the load-change event fixes the issue.

Fixes #112
2019-03-23 17:05:02 +00:00
Manuel Genovés a767f66a9f fix version 2019-03-23 01:48:44 +01:00
Manuel Genovés 741cda968a v2.1.5 2019-03-23 00:47:26 +01:00
Manuel Genovés f0ad4f4d94 fixed non-closed ul 2019-03-22 00:07:09 +01:00
Manuel Genovés a0a13079fc v2.1.5-beta2 2019-03-21 23:26:24 +01:00
Manuel Genovés 284d582654 update translators data and uw version 2019-03-21 23:25:48 +01:00
Manuel Genovés 43c9584369 add debug flag to webview 2019-03-21 21:35:36 +01:00
Manuel Genovés 886b292a10 update localizations 2019-03-10 02:19:28 +01:00
Manuel Genovés 3130129149 Merge branch 'master' of https://github.com/wolfv/uberwriter 2019-03-10 02:12:48 +01:00
Manuel Genovés f71e358c0a remove unnecessary mo files 2019-03-10 02:12:27 +01:00
somas95 a1caf64686 Update uberwriter-es.po (POEditor.com) 2019-03-10 00:56:44 +01:00
somas95 80f05937d7 Update uberwriter-it.po (POEditor.com) 2019-03-10 00:56:42 +01:00
somas95 856bb7a04f Update uberwriter-de.po (POEditor.com) 2019-03-10 00:56:39 +01:00
somas95 bb8763f29b Update uberwriter-fr.po (POEditor.com) 2019-03-10 00:56:37 +01:00
somas95 717719599c Update uberwriter-en_GB.po (POEditor.com) 2019-03-10 00:56:35 +01:00
somas95 23270be7b8 Update uberwriter-ca_ES.po (POEditor.com) 2019-03-10 00:56:33 +01:00
somas95 5d2152e744 Update uberwriter-eu.po (POEditor.com) 2019-03-10 00:56:31 +01:00
somas95 d65008a92a
Merge pull request #118 from UberWriter/refactoring
Refactoring
2019-03-09 20:43:56 +01:00
somas95 8372eee85c
Merge branch 'master' into refactoring 2019-03-09 20:43:48 +01:00
somas95 d12f8b6ef7
Merge pull request #117 from UberWriter/ui
Ui
2019-03-09 20:38:21 +01:00
Manuel Genovés 412f468f75 ad GTK category 2019-03-09 20:35:32 +01:00
Manuel Genovés fb47539dd8 initial theme stylesheets support 2019-03-09 19:53:28 +01:00
Manuel Genovés 5618ff38b6 fix background color in dark mode preview for code blocks 2019-03-09 14:50:12 +01:00
Manuel Genovés 6528702f55 update deprecated methods, linting 2019-01-27 20:22:24 +01:00
Manuel Genovés 9f731d7339 store spellchecking status in dconf 2019-01-27 20:21:35 +01:00
Manuel Genovés 7169bf9a03 update imports, basic linting 2019-01-27 20:20:56 +01:00
Manuel Genovés a1a50d4890 Remember autospellchek status 2019-01-27 16:42:36 +01:00
Manuel Genovés 3375349d6b allow blank list elements 2019-01-26 20:22:48 +01:00
Manuel Genovés 66ccfb47c3 recents popover: open document on single click 2018-12-22 14:28:17 +01:00
Manuel Genovés 7d3a6fd6de add function to retrieve any child by name 2018-12-22 14:26:32 +01:00
Manuel Genovés 7066f446d2 Fix padding in "unsaved changes" modal 2018-12-14 20:47:15 +01:00