Commit Graph

78 Commits (master)

Author SHA1 Message Date
Manuel Genovés 29d2af97fa Update all references of the app's name
from uberwriter to apostrophe, but the appIds
2020-03-15 01:11:37 +01:00
Manuel Genovés a02c61ec7e Implement theme switcher
auth.: @Exalm
2020-02-25 13:32:10 +01:00
Manuel Genovés 28fc4e0a72 make preview layout switcher menu dynamic 2020-02-12 12:35:40 +01:00
Manuel Genovés c1cd347c49 add preview layout icons 2020-01-28 22:40:23 +01:00
Manuel Genovés 07378d0ca8 delete unnecessary icons 2020-01-28 22:39:38 +01:00
Manuel Genovés 151809ae9b add background color to inline buttons 2019-12-09 02:15:09 +01:00
Manuel Genovés b5260e3906 add curved corners for focus mode 2019-11-23 02:08:47 +01:00
Manuel Genovés 8bbe3c9044 work on the meson port by @bilelmoussaoui 2019-10-28 21:40:51 +01:00
Manuel Genovés 26077831fa fix typo in tutorial file 2019-07-25 00:18:33 +01:00
Gonçalo Silva 7ea8f67216 Add code highlighting
Removes previously added indent. Reused for math.
2019-07-25 00:18:33 +01:00
Gonçalo Silva eec633437b Improve inline preview
- Uses commonly defined regexp
- Removed dependency on gnome-web-photo, use WebView instead
- Improved lexicon rendering
2019-07-25 00:16:26 +01:00
Bilal Elmoussaoui 16b5e8821f Build system: init porting to meson 2019-07-01 12:43:26 +02:00
Gonçalo Silva 832b3e3d38 Remove unused file 2019-05-17 06:59:50 +01:00
Gonçalo Silva 8ae2dfcb0b Fix preview CSS 2019-05-04 16:33:09 +01:00
Gonçalo Silva 86cffc40ec Improve full-width preview workflow 2019-05-04 16:33:09 +01:00
Gonçalo Silva 65e7028843 Add toggle between various preview modes
Including:
* Full-width (original)
* Half-width
* Half-height
* Windowed
2019-05-04 16:33:09 +01:00
Gonçalo Silva 2cb161307c Improve side-by-side experience
Includes multiple improvements to scroll syncing, preview re-render,
layout separation, etc
2019-05-04 16:33:09 +01:00
Gonçalo Silva 5e770510ee Add support for side-by-side preview
Fixes #59
2019-05-04 16:33:09 +01:00
Gonçalo Silva bc23fa9b0b Make characters-per-line configurable
This is in preparation for the side-by-side preview, where the editor
needs to become more adaptable. It indirectly fixes #141, as users can
now change the desired line-length, although there is no UI setting for
it.
2019-05-04 16:33:09 +01:00
Gonçalo Silva 63b20d0f3c Match breakpoints 2019-05-04 16:33:09 +01:00
Gonçalo Silva 878bbdb67c Cap preview width similar to GitHub
It is presumed that this was not included in the original stylesheets
(which were heavily based on GitHub's) because it is set in JS.
2019-04-21 01:50:49 +01:00
Gonçalo Silva ddcf76df47 Set text view padding in Python instead of CSS
Otherwise scrolling calculations will be slightly offset, as the CSS
padding is added *on top* of any other margin.
2019-04-21 01:50:49 +01:00
Gonçalo Silva 81f9104d9f Split gtk and web CSS into separate directories
Helps clean up the CSS selection on the export dialog, as only Web CSS
is useful in that scenario.
2019-04-21 01:50:49 +01:00
Gonçalo Silva e87de1424e Remove hard-coding from Gtk-related CSS
It's unecessary, since Adwaita and most popular themes provide a defined
set of public colors.

For reference, see: https://github.com/GNOME/gtk/blob/master/gtk/theme/Adwaita/_colors-public.scss
2019-04-21 01:32:26 +01:00
Gonçalo Silva c19f57f64b Add statistics for sentences and read time, allow user to toggle default
Fixes #63
2019-04-19 11:23:16 +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
Manuel Genovés 23c1b2e42a Fix and improve shortcuts 2019-04-06 20:27:42 +02: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
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
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 47c169882e update styles 2018-12-06 14:22:07 +01:00
Manuel Genovés 473cac657c updated icon by @bertob 2018-11-27 20:49:02 +01:00
Manuel Genovés 9288c54a36 delete unnecesary fmedia files 2018-11-27 20:48:28 +01:00
Manuel Genovés 540671186e fix popover styles 2018-11-02 19:30:02 +01:00
somas95 84f1cf28de add window shortcuts 2018-06-28 02:16:17 +02:00
somas95 80635ac4c0 Migrate right menu to GMenuModel 2018-06-23 21:34:53 +02:00
somas95 4e7275ae89 icon 2018-04-29 18:09:40 +02:00
somas95 c26902436c fix of web popover (inline preview) 2018-04-18 19:29:13 +02:00
somas95 4b180b27a9 Fix InlinePreview popup styles 2018-04-18 15:00:22 +02:00
somas95 fb34842a56 fixed some styles 2018-04-15 19:59:35 +02:00
somas95 9462a1117b better a whole style file than an import 2018-04-15 19:32:48 +02:00
somas95 8abc388486 set dark theme in preview if the main window has it 2018-04-15 19:24:55 +02:00
somas95 5c19d9fecd delete unnecessary files 2018-04-13 20:16:47 +02:00
somas95 ac1774c848 convert relative paths to absolute on preview 2018-04-12 21:55:45 +02:00