Commit Graph

661 Commits (5f759989736e35a4c108e17f4d6c68cc498b80f2)
 

Author SHA1 Message Date
Gonçalo Silva 372d2c8a65 Remove tick callback after scrolling is done
Adding a tick callback starts updating the frame clock:
d1cdb9b5cf/gtk/gtkwidget.c (L3629)

Gdk's documentation implies that this is taxing, as it continuously
requests a new frame (which makes sense, this API is for animations):
https://developer.gnome.org/gdk3/stable/GdkFrameClock.html#gdk-frame-clock-begin-updating

Most likely fixes #75
2019-04-13 02:00:13 +01:00
Gonçalo Silva 6688eb259e Refactor textview / textbuffer into separate modules
Changes include:
* Much better encapsulation of textview/textbuffer, with each isolated
responsibility living independently on its own class/file.
* Less code overall
* Various small fixes around the components involved, such as:
  * Indentation of nested lists (fixes #120)
  * Unwanted scroll on select all (ctrl+a)
* Removal of unused code around the components involved
* Fixes for scrollbar location, now at the edge of the window
2019-04-13 02:00:13 +01:00
Gonçalo Silva 16a8ac78db Fix changing theme while app is running not applying until restart
Overall refactoring of how the theme is set, bounding it to the window
instead of the application, which generally makes it easier to listen
for the "style-updated" signal.
2019-04-11 05:23:34 +01:00
Gonçalo Silva 99641125ba Uniformize main class <> file naming 2019-04-11 03:49:59 +01:00
Gonçalo Silva 30df10cab6 Allow following system theme *and* forcing light / dark theme 2019-04-11 03:42:15 +01:00
Gonçalo Silva 7a9b878d02 Copy improvements
Smaller improvements around capitalization, tense and style.
2019-04-11 03:42:15 +01:00
somas95 cada4f6702
Merge pull request #138 from UberWriter/ft.shortcutfixes
Ft.shortcutfixes
2019-04-06 20:38:39 +02:00
Manuel Genovés 30649551b6 Fix and improve shortcuts 2019-04-06 20:32:48 +02:00
Manuel Genovés 23c1b2e42a Fix and improve shortcuts 2019-04-06 20:27:42 +02:00
Manuel Genovés 80270a45ee Fix and improve shortcuts 2019-04-06 20:19:53 +02:00
Wolf Vollprecht 72760ad7d1
Merge pull request #132 from UberWriter/ft.tidying
Tidy up UberWriter
2019-04-05 10:00:19 +02:00
somas95 37a8eb1cd1
Merge pull request #133 from UberWriter/ft.tidying
Ft.tidying
2019-04-02 20:17:49 +02:00
Manuel Genovés 129041795a use pep8 naming style for modules and classes 2019-04-01 22:40:59 +02:00
Manuel Genovés c91d8018dc moving files to better suited folders 2019-04-01 21:29:29 +02:00
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
Manuel Genovés 3bb9e0b575 hemingway/preview mockup 2019-04-01 17:15:53 +02:00
Manuel Genovés 5bf0d877d3 meson initial approach 2019-04-01 17:15:33 +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