Commit Graph

669 Commits (f766c3703d70c1f9218c64ae19e85c803ea5bae8)
 

Author SHA1 Message Date
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
Manuel Genovés 9bf30143d1 Merge branch 'refi64-flatpak' into flatpak-improvements 2019-04-20 18:24:36 +02:00
Manuel Genovés 3d26dc2b25 flatpak improvements 2019-04-20 18:24:21 +02:00
somas95 c2b5116a46
Merge pull request #147 from UberWriter/various-improvements
Various improvements
2019-04-20 13:34:57 +02:00
somas95 f2d00f2f0d
Merge pull request #146 from goncalossilva/ft.stats
This PR improves statistics counting, as well as adds support for more of them, fixing #63. It does so in a iA Writer inspired way, meaning:
* The stats bar displays one stat, word count by default.
* The stats bar now contains a button that [displays all stats and allows toggling between them](https://cl.ly/a0ce3fad3d72/gnome-shell-screenshot-QRNG0Z.png).
* The default stat is saved between sessions.
* All the stats are objective and deterministic. For instance, I contemplated adding GhostWriter's "Pages" estimation, but it's outright broken in my testing, and I also think we should be strict about what too include. Too many things will make it less useful. Regardless, it's trivial to extend.
* Calculations are done on a worker thread, to prevent hogging the UI and allowing future extensibility without much consideration.
2019-04-20 13:21:37 +02:00
Ryan Gonzalez 32bb70a261 Flatpak fixes (ref. #111) 2019-04-19 13:06:13 -05:00
Manuel Genovés f466171eda print correct folders 2019-04-19 14:39:06 +02:00
Manuel Genovés dc4c4d9c2c update flatpak json 2019-04-19 14:02:57 +02:00
Manuel Genovés 8e5ccfc01d preserve the /data/media folder structure 2019-04-19 14:02:39 +02:00
somas95 2b5140dada
Merge pull request #144 from goncalossilva/various-improvements
Fix opening recents popover affecting font size
2019-04-19 13:29:09 +02:00
Gonçalo Silva dccc645430 Add paragraphs stat 2019-04-19 11:26:21 +01:00
Gonçalo Silva f6c62fb459 Tooltip capitalization fix 2019-04-19 11:23:16 +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
Gonçalo Silva 1a7443fd3c Switch to a more powerful and accurate stats counter
The new stats counter is able to count characters, words, sentences, and
reading time.

It does so more accurately than before, by leveraging Pandoc's plain
format, and a few simple regular expressions that besides accuracy, also
improve support for Asian languages. It's all done on a background
thread to avoid hogging the UI.
2019-04-19 11:23:16 +01:00
Gonçalo Silva dfe7cc420e Fix opening recents popover affecting font size 2019-04-19 00:00:33 +01:00
Manuel Genovés ec3dc6d632 Merge branch 'various-improvements' of https://github.com/wolfv/uberwriter into various-improvements 2019-04-17 22:30:05 +02:00
Manuel Genovés 21e27eaaf0 fix paths 2019-04-17 22:27:06 +02:00
Manuel Genovés d3c9b81fe8 Merge branch 'various-improvements' of https://github.com/wolfv/uberwriter into various-improvements 2019-04-17 22:18:08 +02:00
somas95 d99e4c65f9
Update setup.py 2019-04-17 22:17:42 +02:00
Manuel Genovés f67eaedcb6 fix binary path 2019-04-17 22:14:10 +02:00
Manuel Genovés 6baa398995 fix binary path 2019-04-17 21:57:51 +02:00
Manuel Genovés 83c15361ea v2.2.0-beta1 install scripts 2019-04-17 21:34:49 +02:00
Manuel Genovés 96865fbefc mockup update 2019-04-17 20:45:17 +02:00
somas95 f5d7f518fa
Merge pull request #143 from goncalossilva/various_improvements
This PR includes various fixes and improvements, most of which I discussed with @somas95 a couple of weeks ago. It also includes some refactoring, mainly to improve encapsulation.

Fixes #17  
Fixes #75 
Fixes #90 
Fixes #120
Fixes #122

Some considerations/questions follow.

**Commit messages**
I recommend reviewing each commit message carefully, as they explain the thinking behind each change. Not everything is small or linear, and hopefully the commit message explains the background and reasoning properly. If anything is missing, I'm happy to try to explain.

**Translations**
There are a few capitalization/copy fixes. I am unsure how this affects translations, or if there's any work I can to make the transition easier. For instance, how are the po files updated?

**Styling**
Styling is subjective, and although I claim to address #90, it's important to note that I'm a fan of UberWriter's simplistic style, reminiscent of iA Writer's approach. As such, I didn't introduce any sizing nor color changes, as I don't personally agree with this direction. Instead, the changes are subtle:
* For links, the link/syntax part is greyed out, without any further changes
* For code blocks, they are indented similarly to quotations, without any further changes

**UI changes**
There are (very minor) UI changes within the places that were touched, mainly preferences and the export dialog. Most of these are around improving small things, such as spacing (eg. multiples of 8), slightly broken alignments, etc.

The only exception would be the removal of ODT as one of the export options in the top bar. As before, subjective, but I find that a sub-window's top bar with 6 horizontal buttons is a little overwhelming, and considering that ODT is still available within the advanced tab, I propose that we remove it as a default option and have a more balanced top bar. I am assuming that PDF/HTML are the most used, but please let me know if that's not the case.

**Further work**
I have a few more tasks planned for the upcoming weeks, hopefully built on top of this codebase as it makes some of them much easier. [Here's a screenshot of my Todoist.](https://cl.ly/4160755d210d/gnome-shell-screenshot-3MMO0Z.png) Hopefully this helps knowing what to expect. 😊
2019-04-17 20:44:18 +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 567e74c99e Fix active search going out of bounds 2019-04-17 02:15:59 +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 d98208e0e9 Cleanup left-over from removing ODT as a default export option 2019-04-17 02:10:19 +01:00
Gonçalo Silva 8159ad9e25 Tweak breakpoints to ensure it conforms to the documented spec 2019-04-17 02:07:15 +01:00
Gonçalo Silva c9958b6c12 Prevent exception when exiting while waiting for scroll 2019-04-16 01:15:11 +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 ce4a13278d Organize export formats by type, more copy fixes 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 fbef0143e2 Use correct mime type for markdown, split markdown/plain text 2019-04-15 02:50:14 +01:00
Gonçalo Silva 4b32617ca7 Update pandoc help link 2019-04-15 02:50:14 +01:00
Gonçalo Silva 50729b0d34 Introduce pypandoc for pandoc calls 2019-04-15 02:50:05 +01:00
Manuel Genovés 9ae1eaedda show symbolic icon in appmenu 2019-04-14 21:14:26 +02:00
Manuel Genovés 844890507c add path to headerbar subtitle 2019-04-14 20:15:46 +02:00
Manuel Genovés c629137ed1 update mockups 2019-04-14 18:20:02 +02:00
Manuel Genovés 97b4963fa7 Add margin to recents popover 2019-04-14 14:16:10 +02:00
somas95 e2cb547648
Merge pull request #142 from UberWriter/master
even with master
2019-04-14 13:57:31 +02:00
Gonçalo Silva 1842a849ad Fix warning due to missing argument 2019-04-13 03:45:27 +01:00