Commit Graph

53 Commits (f5d7f518fa2162f22e67e242ef95109770233493)

Author SHA1 Message Date
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
somas95 0dfd95d86c Actually the icon needs to have this name.
For export it we'll need to rename it via the manifesto

Signed-off-by: somas95 <manuel.genoves@gmail.com>
2018-04-06 22:13:54 +02:00
somas95 fa9a088d77 Added prefix to icon
Signed-off-by: somas95 <manuel.genoves@gmail.com>
2018-04-05 15:15:14 +02:00
somas95 bc8142bb8d Added support for GFM' tasklist checkboxes
Signed-off-by: somas95 <manuel.genoves@gmail.com>
2018-03-24 17:40:31 +01:00
somas95 9db4e9ab41 Make the shadow match the guidelines from most of the popular icon themes
(Numix, Papirus, etc)

Signed-off-by: somas95 <manuel.genoves@gmail.com>
2018-03-07 15:23:25 +01:00
somas95 06d8cfb15d Changing from utf-8 to utf-16 2018-02-15 14:20:49 +01:00
somas95 6c4e391f62 typo 2017-12-20 11:37:02 +01:00
somas95 b5cc3c9f35 Refactoring of style.css 2017-12-20 11:03:45 +01:00
somas95 0b4386c760 Fixed status_bar_box styles 2017-12-14 22:14:07 +01:00
somas95 cc49a3b820 Cursor and button label styles fixed 2017-12-14 20:57:18 +01:00
somas95 0ca6263763 Fixed HeaderBar opacity issues 2017-12-11 16:45:54 +01:00
somas95 20ae4c3aa2 Fixed bright and dark mode styles 2017-12-08 21:58:45 +01:00
Wolf Vollprecht dad4da1678 make usable on recent fedora/gnome/gtk 2017-12-07 07:56:39 +01:00
Wolf Vollprecht da4efb4b0b merged head 2016-02-05 23:54:57 +01:00
Wolf Vollprecht f02b5af858 fixed some bugs in gtk 3.18 and added some experimental stuff that DOES NOT WORK YET! 2016-02-05 23:52:43 +01:00
Wolf Vollprecht d521bdc385 adjustment ubuntu" 2015-05-20 00:51:02 +02:00
Wolf Vollprecht 86cd732902 modified style handling for GTK 3.16 2015-05-19 22:32:55 +02:00
Wolf Vollprecht a16f5d95d2 added uberquation plugin 2015-02-21 21:33:50 +01:00
Wolf Vollprecht 6dbb93e123 no more menubar showing up, no more revealing not working after window rearrangement 2015-02-12 19:12:02 +01:00
Wolf Vollprecht 469420d5c9 no more menubar showing up, no more revealing not working after window rearrangement 2015-02-12 19:10:09 +01:00
Wolf Vollprecht 0c9e6263b9 added click support to autocorrections 2014-10-05 00:18:17 +02:00
Wolf Vollprecht 8fdc9f465a removed several deprecations, added experimental features option 2014-10-02 19:02:59 +02:00
Wolf Vollprecht 38a9687c4a added new translations, and reworked the lexikon bubble a bit; 2014-09-15 15:55:06 +02:00
Wolf Vollprecht ccf9e39201 working setup.py for the first time in .. years? 2014-09-12 01:59:05 +02:00
Wolf Vollprecht c2ac83492a several fixes, most importantly for fading out the headerbar 2014-09-11 17:44:50 +02:00
Wolf Vollprecht eed1c95a26 several improvements, also introducing several new bugs 2014-09-01 23:07:18 +02:00