Commit graph

46 commits

Author SHA1 Message Date
Tor Lillqvist
532e70db8d tdf#122572: Use a context toolbar in the iOS app that looks more native
Not icons, but white text on black background, etc. This is how the
native context toolbar (whatever it actually is called in iOS) looks
in Notes and Pages and in text input fields in general.

Change-Id: Ibfa149fa8a951046de25c71022ea5c5684cfcc02
2019-05-31 19:51:34 +03:00
Alexandru Vlăduţu
60dca5cf5e loleaflet: minor followup changes after vex upgrade
Change-Id: I9cee6ee5b0592f067718399a4ccaf1c25203c01c
Reviewed-on: https://gerrit.libreoffice.org/71851
Reviewed-by: Iván Sánchez Ortega <ivan.sanchez@collabora.com>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-16 16:12:27 +02:00
Alexandru Vlăduţu
ef1669b389 loleaflet: update vex.js library
Change-Id: I6b32c6a60a27aa27eb32784bb73e40c979f67def
Reviewed-on: https://gerrit.libreoffice.org/71726
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-03 12:17:02 +02:00
Szymon Kłos
9e70d70588 Don't hide last modification if height is small
Change-Id: Ic8986e8a9c36bd1c4ede9e604b07d93974c1a05f
2019-03-20 08:57:57 +01:00
Szymon Kłos
a533fad1f2 Don't wrap menubar
Change-Id: I5283a20d50dceb945378b47fc5678798dfa52608
Reviewed-on: https://gerrit.libreoffice.org/69159
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-03-13 16:41:30 +01:00
Szymon Kłos
1236c63f6b Show user colors when no avatar is available 2019-03-12 09:21:03 +01:00
Szymon Kłos
c7095ff3e1 Make avatar unified and colored
Change-Id: I2991f8d6a5e0660c2ea857e397588f162f557c60
2019-01-30 16:55:02 +01:00
Szymon Kłos
fb924bf931 Unify whitespaces in loleaflet.css
Change-Id: I6d916acac8f6b7d4c71eab4fd63b5e13d61be4a1
2019-01-29 21:15:01 +01:00
Szymon Kłos
df090a42b4 Reduce readonly toolbar height
Change-Id: I431a2f3e87374a1cb6cb75557cb0d1eecccf17d0
2019-01-29 21:11:59 +01:00
Szymon Kłos
c38c5d2bf7 Revert "Reduce readonly toolbar height"
This reverts commit d054da1e6b.
2019-01-29 21:08:45 +01:00
Szymon Kłos
a29ae6cc59 Revert "Unify whitespaces in loleaflet.css"
This reverts commit b858bf4ce7.
2019-01-29 21:08:32 +01:00
Szymon Kłos
b858bf4ce7 Unify whitespaces in loleaflet.css
Change-Id: I6d916acac8f6b7d4c71eab4fd63b5e13d61be4a1
2019-01-29 21:03:51 +01:00
Szymon Kłos
d054da1e6b Reduce readonly toolbar height
Change-Id: I431a2f3e87374a1cb6cb75557cb0d1eecccf17d0
2019-01-29 20:56:45 +01:00
Szymon Kłos
30c06fab33 Fix toolbars position
Change-Id: Ib48bc53ebb5230f198de27d80ecffd3e0c4eec2f
2018-12-12 13:39:14 +02:00
Jan Holesovsky
a710a8fafd mobile view mode: Add the floating action button.
The icon comes from the Material Design pages: https://material.io

Change-Id: I59acf7bfb6c65030721605ead057c8854f529a3b
2018-12-07 12:39:28 +01:00
Szymon Kłos
0eb1bcb8ce Zoom & move LOKDialogs using gestures
Change-Id: I313ef0ed1b801d8a3d3aadfca7c2eb001499e7db
2018-12-07 12:39:28 +01:00
Szymon Kłos
d2a4e1677f Introduced tablet mode
* by reducing small device screen size limit to 767px
  tablets like iPad are not switched to the simple ui

* tablet is a mobile device without simple ui

* created global methods to detect ui mode
  window.mode.isTablet() / isMobile() / isDesktop()

* menubar / toolbar items can have 'tablet' property

* modification indicator is hidden in the tablet mode
  to allow layout menubar correctly in the vertical mode

* tablet mode has the menubar folded by default and
  hamburger menu icon to unfold it

* menubar hidden by default needed fix for calc due to
  additional row with formulas

Change-Id: I0d89427f6bfde015c645c597cb741c69b9031178
2018-12-07 12:39:28 +01:00
Szymon Kłos
c71a0681c5 Possibility to fold menubar
Change-Id: Ibc18c9ad7eda8ac9f1ed6f8ea870d17742084f04
2018-12-07 12:39:27 +01:00
Szymon Kłos
b95bd06505 Updates related to the close button.
Change-Id: Ied1effd99ae7ae2c57ab2659b1851bf4ba81e9d8
2018-12-07 12:39:27 +01:00
Szymon Kłos
413d18ab8c ui: fix menu & toolbar layout
Some fixes for correct resizing still needed.

Change-Id: I0e217d0cb1fc456c786592eaf3c4ee313fb63ad3
2018-12-07 12:39:27 +01:00
Szymon Kłos
64170351af ui: move menu to the top
Change-Id: I0d2aa53efef34455e90f2eb721f482a1aadca0aa
2018-12-07 12:39:27 +01:00
Jan Holesovsky
05fc9e60a6 Fix color mismatch behind the document type icon.
Change-Id: Ide3c8e50a72fc98c52b164d31844966b80c392bc
2018-12-07 12:39:27 +01:00
Henry Castro
3e764f2d9e loleaflet: update new positions
Change-Id: I9aefba308e8cb8d83419f3b5274bc127371eae32
2018-12-07 12:39:27 +01:00
Marco Cecchetti
abede8cbe8 loleaflet: mobile ux: get comments scaling on document zoom
On document zoom out the comments are shrunk.
We try to get the selected/edited comment always visible.
This is especially useful on small devices.

Change-Id: I0a43d32fe68364f681056c1643c36dc74ff3a66a
2018-11-19 13:40:17 +02:00
Jan Holesovsky
392e686eec hidpi: Provide hidpi slide previews when necessary.
Note that this will lead to sending previews in higher resolution even
to non-hi-dpi displays during updates; but even the hidpi previews are
just slightly larger than normal tiles, so probably it takes more time
to render the preview in both resolutions than just using hi-dpi
everywhere.

Change-Id: Ia478d4ceffe9a1433d50606bf6ff8ad91b46ae4c
2018-11-19 13:40:07 +02:00
Marco Cecchetti
ba7451e9b1 loleflet: mobile ui: removing the doc logo from up toolbar
Change-Id: I3f51b9b9871f58abeb4a7170fce6f026759a112b
2018-11-19 13:39:21 +02:00
Jan Holesovsky
f8c5310fff Disable the 'pull to reload' gesture.
Change-Id: I35b722c15386beae75975dffb39341e4aeb34b02
2018-11-19 13:38:47 +02:00
Henry Castro
511c59108a loleaflet: mobile: add context toolbar
Change-Id: I8cf5d0043022efebc022da70e3a99edcc2f96cb7
2018-11-19 13:37:27 +02:00
Henry Castro
69cbed0fe5 loleafet: mobile: use max-device-height
Change-Id: I2d117fde9a6d8c522e8b40a133a43c978bf29896
2018-11-19 13:37:07 +02:00
Henry Castro
12f0faf38f loleafet: mobile: fix max-height screen size tablet
Change-Id: Id2d6112107d308539eb7f67efbc99f8066ad415a
2018-11-19 13:30:52 +02:00
Henry Castro
eafed64896 loleaflet: mobile: exchange toolbar positions
Change-Id: I0cbae0d351cb2cc965379aa2d5f8cb345475a37c
2018-11-19 12:58:27 +02:00
Henry Castro
c3bdf30b31 loleaflet: mobile: adjust spreadsheet positions
Change-Id: Iad33a6831714f441cd56abc1f83c6fd3ce2b5980
2018-11-19 12:52:02 +02:00
Henry Castro
e044375ff5 loleaflet: mobile: hide statusbar
Change-Id: I48370e0e5d2b28436d5cc7c2c12c42bc37f07714
2018-11-19 12:02:53 +02:00
Henry Castro
bc60fc9273 loleaflet: mobile: hide menubar
Change-Id: I7724f0c43dfabb56424daeee5972675878b86c5e
2018-11-19 11:36:26 +02:00
Miklos Vajna
a514abff88 document signing: fix disabled case for Calc/Impress
If the document-container has an explicit style attribute, then this
breaks Calc (only Writer was tested before). This restores the correct
Writer/Calc/Impress behavior when the setting is false and keeps correct
behavior with Writer when the setting is true.

Change-Id: I310660e88af4407e521529ec41b5dcb604108bd9
2018-11-12 11:53:42 +01:00
Miklos Vajna
c74c9e39c8 Disable document signing via config setting
It's not too easy to customize CSS, so move the top position of the
document container to loleaflet.html, where it's convenient to handle
this.

JS can dynamically query if the menu item should be there, similar to
the about dialog.

Change-Id: I4b2799a41f8ad31e3a9b4983fd1947d2e0363a2b
2018-11-09 13:56:02 +01:00
Tomaž Vajngerl
1a954fa44d add sign infobar below the toolbar
Change-Id: I7def928b0cacf54f008c9402a9df229423042f48
Reviewed-on: https://gerrit.libreoffice.org/63153
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2018-11-09 09:06:23 +01:00
Henry Castro
4a4a888798 loleaflet: mobile: ensure to hide the document name
Change-Id: I5285409f69f8e6568436fcc25a58eca4a24a0886
2018-10-16 21:07:08 -04:00
Henry Castro
32c98a4c88 loleaflet: mobile: fix scrolling the dialogs
Change-Id: I5279cffca4b4d66fbc35a4a8ae4b3ffdfe70a215
2018-10-16 20:08:17 -04:00
Henry Castro
25e4bb1c51 loleaflet: mobile: use max-device-height media query
max-height it is used for window size, max-device-height
it is the device screen dimensions, so when a tablet
rotate to landscape we keep the mobile layout

Change-Id: I921007014a63374114ec7563144f3532a53fd021
Reviewed-on: https://gerrit.libreoffice.org/61339
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-10-09 15:54:50 -04:00
Henry Castro
fcc34e6fb9 loleafet: mobile: fix max-height screen size tablet
Change-Id: I1c869089aee6991de34e06daf0a38d8b07f82a22
Reviewed-on: https://gerrit.libreoffice.org/61280
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-10-09 15:54:05 -04:00
Henry Castro
0610196d4f loleaflet: mobile: fix max-width screen size tablet
Change-Id: I3337e669521f0f0f1dd749884f38dd35663491d3
Reviewed-on: https://gerrit.libreoffice.org/60977
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-10-09 15:51:56 -04:00
Henry Castro
5e65d5f491 loleaflet: hide the mobile input cursor
Change-Id: I978e388eb1066374bd0174e35211bd3bd5a6743b
2018-09-27 09:47:22 -04:00
Henry Castro
c3db4078cb loleaflet: mobile: add control to handle events cut/copy/paste
Change-Id: I8f500b17d9479a846afd59c42775e11d3f298248
2018-08-26 14:30:31 -04:00
Pranav Kant
32eff8dd6b lokdialog: Don't show the title bar when no title was provided.
Change-Id: If08dc81e88d35a924d10695a38b138f6403e58bd
Reviewed-on: https://gerrit.libreoffice.org/51955
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2018-05-21 13:27:34 +02:00
Henry Castro
8618885b31 use Makefile to build loleaflet
Concatenate and minify all javascript files in the release build but not
in the debug build. Also, it is enabled to use a build directory

Change-Id: Ia120447a827cfe236241ddf188bf43a088f877a7
Reviewed-on: https://gerrit.libreoffice.org/52802
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2018-05-10 20:30:16 +02:00
Renamed from loleaflet/dist/loleaflet.css (Browse further)