Commit Graph

216 Commits (master)

Author SHA1 Message Date
Manuel Genovés 379bb91619 fix icon paths 2019-10-29 01:30:37 +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 23cddba0d0 Add shortcut for find and replace
Also renames "search" to "find" as most other Gtk apps.
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
Manuel Genovés f0f2f05670 Merge branch 'master' 2019-05-18 18:51:45 +02:00
Gonçalo Silva 832b3e3d38 Remove unused file 2019-05-17 06:59:50 +01:00
Manuel Genovés b55f4dbecd Added @goncalossilva to the contributor's list 2019-05-12 21:26:44 +02:00
Manuel Genovés 7e34e9cc62 Merge branch 'master' 2019-05-12 21:24:30 +02:00
Manuel Genovés bc24251461 even with master 2019-05-04 21:15:24 +02:00
Gonçalo Silva 939edcc762 Allow disabling scroll sync 2019-05-04 16:33:09 +01:00
Gonçalo Silva e533bf190d Remove unused vadjustment property 2019-05-04 16:33:09 +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 dccc645430 Add paragraphs stat 2019-04-19 11:26:21 +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 e76b85e837 Add official markdown mime type support in Recents 2019-04-19 11:23:16 +01:00
Manuel Genovés 83c15361ea v2.2.0-beta1 install scripts 2019-04-17 21:34:49 +02:00
Gonçalo Silva 432ef9d55e Set tooltips on the whole button, not just the icon 2019-04-17 02:54:55 +01:00
Gonçalo Silva 53d3fc6026 Use symbolic icon for input format documentation 2019-04-17 02:52:56 +01:00
Gonçalo Silva fc824fc2ef Add missing tooltip for search's regular expression option 2019-04-17 02:13:00 +01:00
Gonçalo Silva 41377c24bb Further remove unecessary prefixes 2019-04-15 03:01:59 +01:00
Gonçalo Silva 9f41bfac8d Add input format setting
Supports Pandoc's Markdown, Commonmark, GitHub Flavored Markdown,
MultiMarkdown and Plain Markdown.

Fixes #17
Fixes #122
2019-04-15 02:50:28 +01:00
Gonçalo Silva 351f7834a5 Remove ODT as default export option
Subjective, but a sub-window with 6 buttons on the top row is crowdy.
2019-04-15 02:50:28 +01:00
Gonçalo Silva 0c94f0c168 Fix padding/margins in export dialog UI 2019-04-15 02:50:28 +01:00
Gonçalo Silva 13ea2cc8fe Make advanced options match defaults, fix capitalization/typos
Having advanced options match defaults helps as a self-documenting
reference.
2019-04-15 02:50:14 +01:00
Gonçalo Silva 13535ab839 Delete unused UI files 2019-04-15 02:50:14 +01:00
Gonçalo Silva 4b32617ca7 Update pandoc help link 2019-04-15 02:50:14 +01:00
Manuel Genovés 97b4963fa7 Add margin to recents popover 2019-04-14 14:16:10 +02: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 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
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
Manuel Genovés c91d8018dc moving files to better suited folders 2019-04-01 21:29:29 +02:00
Gonçalo Silva 3f87bd1d22 Add Hemingway Mode
Closes #40
2019-03-27 02:29:29 +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
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 741cda968a v2.1.5 2019-03-23 00:47:26 +01:00
Manuel Genovés 284d582654 update translators data and uw version 2019-03-21 23:25:48 +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 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 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 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
somas95 226b4e81dc
Merge pull request #96 from UberWriter/styles
update styles
2018-12-06 14:51:36 +01:00
Manuel Genovés 4bb6862f0e make headerbar autohidding toggeable 2018-12-06 14:29:10 +01:00
Manuel Genovés 47c169882e update styles 2018-12-06 14:22:07 +01:00
Manuel Genovés 772b1ba6db Make the overlay toggable 2018-12-05 20:27:19 +01:00
Manuel Genovés 65f2f987f7 added domain to menu ui file 2018-11-28 22:28:10 +01:00
Manuel Genovés 5ad641d959 updated version, contributors 2018-11-27 20:49:32 +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 5b63b75ad3 Merge branch 'use-hig-for-primary-menu' of git://github.com/BrainBlasted/uberwriter into BrainBlasted-use-hig-for-primary-menu
Follow gnome HIG on appmenu
2018-11-23 21:11:54 +01:00
Manuel Genovés 355880ab1a Merge branch 'add-tooltips-to-horizontal-buttons' of git://github.com/BrainBlasted/uberwriter into BrainBlasted-add-tooltips-to-horizontal-buttons
Change icons to labels
2018-11-23 21:07:25 +01:00
Christopher Davis 917a92485b Use labels instead of icons for preview, focus, and fullscreen
These actions were not immediately recognizable as icons;
With GMenuModel there's no way to either add tooltips or use
icons _and_ text, so labels-only are the best option
usability-wise.
2018-11-21 08:05:34 -05:00
Christopher Davis 03f2c21f8a Menu.ui: Use GNOME HIG for Primary Menu
As per https://gitlab.gnome.org/GNOME/Initiatives/wikis/App-Menu-Retirement,
the new HIG has a few requirements:

* About should be "About <Application Name>"
* Preferences should be in the same section as About and Keyboard Shortcuts
* Shortcuts should be Keyboard Shortcuts
* Quit should be removed, as it's redundant
2018-11-21 03:52:01 -05:00
Manuel Genovés fcab2687f1 recents menu refactoring 2018-11-03 13:35:47 +01:00
Manuel Genovés 540671186e fix popover styles 2018-11-02 19:30:02 +01:00
Manuel Genovés fbb5dc05db fixed some icons 2018-10-14 17:49:41 +02:00
somas95 2b2568128d update version 2018-07-27 19:46:04 +02:00
somas95 600f4b9c37 Delete unused images 2018-07-27 19:44:57 +02:00
somas95 b09fbba870 change icons to symbolic ones 2018-07-27 18:03:21 +02:00
somas95 ed164496a0 update version 2018-07-26 19:36:23 +02:00
somas95 a067f32832 Update version 2018-07-18 16:56:43 +02:00
somas95 c8313472f8 Added no texlive installed label 2018-07-18 16:24:06 +02:00
somas95 5bd1b1cd45 Fix some issues with the advanced options 2018-07-17 12:44:04 +02:00
somas95 0e18bdc19b solve CAN_DEFAULT error 2018-07-16 20:06:02 +02:00
somas95 ea45129bf1 new export dialog 2018-07-16 18:12:36 +02:00
somas95 59bfe731a3 new shinny export dialog 2018-07-02 01:22:35 +02:00
somas95 9e4be3e0c5 Add translation and donation links to AboutDialog 2018-07-02 01:02:41 +02:00
somas95 52def543fe Cleanup of preferencesdialog class 2018-07-01 03:20:56 +02:00
somas95 2ce88698d3 Add preferences dialog 2018-07-01 03:14:11 +02:00
somas95 96731ef8f6 Redesign of the headerbar 2018-06-30 02:11:47 +02:00
somas95 84f1cf28de add window shortcuts 2018-06-28 02:16:17 +02:00
somas95 3ae75a4b73 left menu to GMenuModel 2018-06-28 02:03:48 +02:00
somas95 b05628ab36 add a new headerbar and an eventboxx wich polls for motion 2018-06-27 01:46:01 +02:00
somas95 27eed48ba8 use stock icons 2018-06-24 00:23:29 +02:00
somas95 642f8f38e0 organize the appmenu 2018-06-24 00:23:20 +02:00
somas95 80635ac4c0 Migrate right menu to GMenuModel 2018-06-23 21:34:53 +02:00