Giter Club home page Giter Club logo

Comments (11)

bertob avatar bertob commented on June 21, 2024 3

Long-term we probably want to use a split view with ToolbarView here (similar to e.g. Sysprof and Builder). I'm not sure what exactly that would entail, but I'd start by moving the primary menu to the left and the plus button to the center pane and making the window three vertically separate panels.

It could also be a nice opportunity to merge some of the sub-toolbar buttons on the right side into the headerbar itself, so maybe it could have some other structural advantages as well 🤔

from gaphor.

bertob avatar bertob commented on June 21, 2024 1

I guess this works as a next step, except for the headerbar/tab bar background mismatch in the center pane.

As for the sidebar colors, yes, they should both use the default sidebar colors, but not sure what the standard way to achieve that is. Might be good to ask in #libadwaita :)

from gaphor.

amolenaar avatar amolenaar commented on June 21, 2024

I looked into the toolbar view, but haven't got around porting to it. Due to the internal structure of Gaphor it's a bit more difficult than just changing the .ui files unfortunately. (something that should be addressed too)

@bertob Do you have an opinion on the header bar style?

from gaphor.

amolenaar avatar amolenaar commented on June 21, 2024

The right side should be relatively easy to convert to a SplitView. The left side is now made with GtkPaned, which allows the user to resize. This is (currently) not possible with split views AFAIK.

I added a border above the "Open a Diagram" status page. I like to stick to the flat layout, since it looks more integrated with other OS'es (in particular macOS, which I use a lot).

from gaphor.

amolenaar avatar amolenaar commented on June 21, 2024

Is this what you had in mind?

The right sidebar looks nice. If I remove the minimize/maximize buttons, the toolbar can move to the header bar.

The left side looks a bit weird to me. The top-left header bit looks a bit out pf place. Also, it seems a tad darker than the right sidebar. Not sure why.

image

from gaphor.

bertob avatar bertob commented on June 21, 2024

More or less, yeah. Where exactly to move the undo/redo/zoom buttons is a bit tricky maybe, since these are probably useful when the sidebar is hidden. Maybe undo/redo and preferences could be in the middle sidebar, and the zoom buttons could be overlaid OSD buttons in the bottom right of the canvas, like in e.g. Maps?

As for the left side, I think it'd be ok as a next step if it used the same color for the entire panel rather than the object tree background being white. Longer-term it might be good to find a better spot for the UML/SysML/etc switcher, but I don't know the use cases for it well enough. Is this something people change often? If not, could it be a submenu in the primary menu?

from gaphor.

amolenaar avatar amolenaar commented on June 21, 2024

More or less, yeah. Where exactly to move the undo/redo/zoom buttons is a bit tricky maybe, since these are probably useful when the sidebar is hidden.

We can also leave them out, since there's keyboard shortcuts for them as well.

Maybe undo/redo and preferences could be in the middle sidebar, and the zoom buttons could be overlaid OSD buttons in the bottom right of the canvas, like in e.g. Maps?

Undo/redo in the middle header bar I suppose? I have to catch up on what's new for GNOME 46.

As for the left side, I think it'd be ok as a next step if it used the same color for the entire panel rather than the object tree background being white.

Longer-term it might be good to find a better spot for the UML/SysML/etc switcher, but I don't know the use cases for it well enough. Is this something people change often? If not, could it be a submenu in the primary menu?

The switcher is (probably) not changed that often, but it changes the proposed diagram types in the tree view context menu and changes the bottom-left toolbar. It may be good to know which profile is active.

And what about the colors? The left and right sidebar should have the same color, right?

image

from gaphor.

amolenaar avatar amolenaar commented on June 21, 2024

How 'bout this?

image

The left pane is still based on GtkPaned, so it can be resized, but with the same style as the (right side) property editor.

from gaphor.

bertob avatar bertob commented on June 21, 2024

Looks good to me 👍

from gaphor.

danyeaw avatar danyeaw commented on June 21, 2024

@all-contributors please add @bragefuglseth for design

from gaphor.

allcontributors avatar allcontributors commented on June 21, 2024

@danyeaw

I've put up a pull request to add @bragefuglseth! 🎉

from gaphor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.