Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotations improvements #394

Closed
wants to merge 4 commits into from
Closed

Annotations improvements #394

wants to merge 4 commits into from

Conversation

mickaelalbertus
Copy link
Contributor

  • Add an annotation toggle button to show or hide the annotation toolbar
  • Move the annotations toolbar from sidebar annotations to a toolbar which appears when the annotation button is toggled.

The following image is what the commit do:
image

It is the beginning of future possible transformations but I need your opinion. The annotation sidebar should contain all buttons to create every kind of annotations most used. It is inspired by the evince GUI. It could be a good alternative for the GUI suggested in pull request #223. What do you think?

@Piiit
Copy link
Collaborator

Piiit commented May 8, 2020

Hi. I tried to avoid this UI when I did the annotation patches, because most displays give more space in their width I think your first proposal with an annotations side panel looks much better

@Piiit
Copy link
Collaborator

Piiit commented May 8, 2020

I think that the Adobe Acrobat Reader does a quite reasonable job... It would be extensible for annotation lists and predefined sets of configs or any other feature in that regard... It is also a huge waste of space horizontal and vertical IMO...
Cheers,
Peter

@mtwebster mtwebster changed the title Move the toolbar for annotations [wip] Move the toolbar for annotations May 12, 2020
@mickaelalbertus mickaelalbertus changed the title [wip] Move the toolbar for annotations Annotations improvements May 12, 2020
@mickaelalbertus
Copy link
Contributor Author

Here is the new GUI that I suggest. I changed to toolbar into a flow box like the recent view.
image

What do you think about it?
I didn't do the Acrobat interface since there no basic widget to do that (to my knowledge). The GtkToolPalette can only contain tool button so it wouldn't be possible to add a list view in a gtk palette. So if we realy want the Acrobat interface we need to write from scratch the widget to do that and I'm not sure it would be pretty.

The commit isn't ready enough. It is only an implementation of a suggestion. So if you agree with this kind of interface I can write this feature.

I use Gimp icons and evince icons. It is not pretty but I don't have graphical skills to make pretty icons like those of Evince. If anyone know how can we have other annotation icons?

@clefebvre
Copy link
Member

Hi @mickaelalbertus,

Do you still have access to the Slack group? I'd love to help, but I've so many questions and remarks.. I'd rather chat directly than comment on github. We could get piiit to shine in as well.

NikoKrause added a commit to NikoKrause/xapps that referenced this pull request May 22, 2020
To be used in xreader for annotation feature (linuxmint/xreader#394)
@mickaelalbertus
Copy link
Contributor Author

I've pushed the last modification to be able to test it. There is some modifications to add like we talked in Slack. The annotation toolbar (it is not a real toolbar) is complete, we can move the text annotation, change the color of added annotations, etc...
I will add the functionality to save the last chosen color.

clefebvre pushed a commit to linuxmint/xapp that referenced this pull request May 23, 2020
* Icons: Add xapp-format-text-highlight-symbolic

To be used in xreader for annotation feature (linuxmint/xreader#394)

* Icons: add xapp-annotations-squiggly-symbolic

* Icons: Add xapp-annotations-text-symbolic
- Change the toolbar to a flow box
The selected color is save in the settings
Update the used icons displayed in the tree view of annotations sidebar
Update the name of icons in the annotation toolbar and the annotation sidebar.
NB: on my computer these icons are not installed so it displays a crossed out circle
@mtwebster
Copy link
Member

I'm going to throw my opinion into the ring. 😄

I've never ever liked the buttons at the bottom of the side bar. It's an unnatural location to me. Why can't these buttons all go in the toolbar, and just change whenever the view type is changed in the sidebar? Possibly move the combobox to the toolbar also?

Right now the toolbar is practically empty, there's plenty of room there. (We could do something instead of a combo for selecting views, but it's ok like it is, just not in the best location).

@mickaelalbertus
Copy link
Contributor Author

We had a discussion about it on Slack. It is a first MVP that we planned but there will have other modifications. In particular we thought to do something like Nemo. A status bar with buttons to show/hide the sidebar and modify the content of the sidebar (see the bottom left of nemo for an example). I think it is good idea to be coherent with nemo and we could put the zoom button (or slider we didn't talk about it). And put the buttons of annotations in the top of the annotation sidebar. If you have ideas about it we can speak on Slack. I would be glad to implement functionalities for xreader like these.

@mtwebster mtwebster changed the title Annotations improvements [next] Annotations improvements Jun 12, 2020
@clefebvre clefebvre changed the title [next] Annotations improvements Annotations improvements Aug 4, 2020
@clefebvre clefebvre changed the title Annotations improvements [Next] Annotations improvements Dec 8, 2020
@clefebvre clefebvre changed the title [Next] Annotations improvements Annotations improvements Jan 5, 2021
@clefebvre clefebvre changed the title Annotations improvements [NEXT] Annotations improvements Jun 10, 2021
@clefebvre clefebvre changed the title [NEXT] Annotations improvements Annotations improvements Jul 28, 2021
@clefebvre clefebvre changed the title Annotations improvements [Next] Annotations improvements Nov 23, 2021
@clefebvre clefebvre changed the title [Next] Annotations improvements Annotations improvements Jan 17, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants