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

small ui suggestion for split views & new session buttons on headerbar #934

Closed
alex285 opened this issue May 20, 2017 · 12 comments
Closed

Comments

@alex285
Copy link
Contributor

alex285 commented May 20, 2017

i use Adapta because the issue is a bit more obvious here, and also Adapta (and flat themes in general) is a quite popular theme

from left to right, excluding the appMenu we have
Session Buttons
New Session
Vertical Split
Horizontal Split

the two issues

  1. i often press split instead of new, because buttons is super close and super similar
  2. the session counting isn't visible enough

my suggestion which is a very light recommendation and i cant be sure without actually testing, is

  1. to drop the split buttons from headerbar, because the right click popover inside terminal makes perfect sense (or S/C) and is much handier
  2. to sub "+" with "New" ..which again im not sure what happens with translations strings
  3. to somehow highlight more the session counting, perhaps with some coloring

tilix-issue

@gnunn1 gnunn1 closed this as completed in c47be5e May 21, 2017
@gnunn1 gnunn1 reopened this May 21, 2017
@gnunn1
Copy link
Owner

gnunn1 commented May 21, 2017

Oops, committed that against the wrong issue.

@gnunn1
Copy link
Owner

gnunn1 commented May 21, 2017

Some thoughts on your suggestions:

  1. I don't think dropping the split buttons from the headerbar is a good idea, this is the primary purpose of Tilix so I like having it front and center. Plus on a personal level I use them all the time and rarely bother with the context menu.

  2. Again, I'm not keen on this as it is too wordy in my opinion. If someone wants to create an appropriate icon though instead of the + I'm not averse to using that.

  3. Coloring is hard because it is theme specific and very difficult to pick a color that works across all themes. Unfortunately themes only define a very limited number colors so there's not much options there.

I think a better way to handle this is to simply add some appropriate CSS styles that theme authors or uses such as yourself could use to modify the look and feel. Does that make sense to you?

@alex285
Copy link
Contributor Author

alex285 commented May 21, 2017

@gnunn1

Plus on a personal level I use them all the time and rarely bother with the context menu

okay, then dropping them is not an option. so next step is how we can improve the current one. im attaching the same view with Adwaita theme

tilix-adwaita

here the sessions arrow is obvious that belongs to 1/1 button when in Adapta it seems like a separated button, since the distances with rest buttons are the same

again some suggestions

  1. we could slightly modify the padding/margin
  2. we could drop the caret arrow since it isn't super useful indicator plus it is repeated right after on title bar, and in Adapta is confusing where it belongs. however this needs more ideas how can the session counter be more visible. use one of the API colors of GTK theme perhaps?
  3. the plus "+" icon is not a very good icon for a "new" action, but not ideas for what icon it should be used. perhaps a terminal icon with a plus sign?
  4. dont know if thats possible without affecting the height of headerbar, but all icons should be a bit bigger?

about the 4, in Adapta the buttons look like icon buttons, so it makes sense to be bigger, but in Adwaita they look like normal buttons that just have an icon inside

also if you still planing to implement a tabs sidebar #681 (which btw it works perfect!!) this issue is gonna be obsolete!

@gnunn1
Copy link
Owner

gnunn1 commented May 21, 2017

To me though all of these items are issues with Adapta, isn't this really an issue for them to resolve? I'm willing to add some css classes if it helps them style things but I'm not changing padding or icon sizes within tilix since from my perspective it looks fine on Adwaita.

I'm happy to consider changing the plus icon though if someone comes up with something nice.

@alex285
Copy link
Contributor Author

alex285 commented May 21, 2017

@gnunn1

To me though all of these items are issues with Adapta

agree thus i open https://github.com/adapta-project/adapta-gtk-theme/issues/417

I'm happy to consider changing the plus icon though

also agree

@gnunn1
Copy link
Owner

gnunn1 commented May 21, 2017

OK I'm closing this for now, if the Adapta folks request some changes in classes or whatever they can re-open it.

@gnunn1 gnunn1 closed this as completed May 21, 2017
@tista500
Copy link

@gnunn1,

Hi, I'm an author of Adapta.
So is it possible to add 2 style-classes to that GtkToggleButton (placed at the left-side of 'Plus' image-button)?

  1. .text-button style-class
    That GtkToggleButton has label(s) to show the current session ID and total number of sessions. If so, we need to optimize the base-line of label(s) and font-weight. Adwaita does not concern the base-lines and font-weights though...

  2. .session-sidebar-button style-class or something like that
    I mean I want a widget specific style-class to tweak the spacing between label node and image (arrow) node inside the GtkBox container of GtkToggleButton.

Regards.

@gnunn1 gnunn1 reopened this May 21, 2017
@gnunn1
Copy link
Owner

gnunn1 commented May 21, 2017

@tista500 I have added the session-sidebar-button class, however I can't add the text-button class because it widens the button excessively under Adwaita. See the screen shot below.

screenshot from 2017-05-21 16-16-31

@tista500
Copy link

@gnunn1,

I have added the session-sidebar-button class

Oh thanks!

however I can't add the tex-button class because it widens the button excessively under Adwaita.

https://git.gnome.org/browse/gtk+/tree/gtk/theme/Adwaita/_common.scss#n569
But for me, your shot shows the natural size of button.text-button as we can see in many places when Adwaita was selected. If you're still keeping arrows inside that button, button.toggle.text-button.image-button might be the best in semantically, just my thought... At least, .text-button style-class brings theme's best (suggested) inner spacing and weight for label(s) in most places.

Anyway we can tweak the spacing without .text-button though.

Regards.

@gnunn1
Copy link
Owner

gnunn1 commented May 21, 2017

I saw you updated and closed the adapta issue, thanks for taking care of this @tista500.

@gnunn1 gnunn1 closed this as completed May 21, 2017
@tista500
Copy link

Thanks for your work @gnunn1 :)

@bilelmoussaoui
Copy link
Contributor

Looks much better!
screenshot from 2017-05-22 00-30-48
Thanks @gnunn1 @tista500 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants