Commit Graph

484 Commits (ft.font-size)
 

Author SHA1 Message Date
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
Manuel Genovés 7e926b86fe read setting from gschema at startup 2018-12-14 20:06:56 +01:00
Manuel Genovés a2661be802 reorder things 2018-12-14 20:06:38 +01:00
Manuel Genovés 56e718be15 allow disabling overlay within preferences window 2018-12-14 20:01:00 +01:00
Manuel Genovés 3fd91923ee Join open and recents buttons 2018-12-14 19:34:06 +01:00
Manuel Genovés 424bb7f8f4 Merge branch 'master' of https://github.com/wolfv/uberwriter 2018-12-10 22:43:15 +01:00
Manuel Genovés 209699a91c added italian language 2018-12-10 22:42:59 +01:00
somas95 226b4e81dc
Merge pull request #96 from UberWriter/styles
update styles
2018-12-06 14:51:36 +01:00
somas95 46a6a9db09
Merge pull request #95 from UberWriter/no-gradient-overlay
No gradient overlay
2018-12-06 14:51:05 +01:00
Manuel Genovés 4623a27779 fix installation paths for media files 2018-12-06 14:34:40 +01:00
Manuel Genovés 4bb6862f0e make headerbar autohidding toggeable 2018-12-06 14:29:10 +01:00