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

Show Tool Bar on Mouse Hover #191

Open
liuderchi opened this issue Apr 7, 2017 · 0 comments
Open

Show Tool Bar on Mouse Hover #191

liuderchi opened this issue Apr 7, 2017 · 0 comments

Comments

@liuderchi
Copy link

liuderchi commented Apr 7, 2017

It's more like a sharing rather than an issue.

Just adding following snippet to ~/.atom/styles.less

@toolBarSizeHidden: 1px;
@barSizeWhenIcon12px: 30px;
@barSizeWhenIcon16px: 38px;
@barSizeWhenIcon24px: 54px;
@barSizeWhenIcon32px: 70px;
// NOTE barSize = 2*iconSize + 6px
@transitionTime: 1000ms;

.tool-bar-top, .tool-bar-bottom{
  height: @toolBarSizeHidden;
  transition: height @transitionTime;
  &:hover {
    height: @barSizeWhenIcon24px;
    transition: height @transitionTime;
  }
}
.tool-bar-left, .tool-bar-right {
  width: @toolBarSizeHidden;
  transition: width @transitionTime;
  &:hover {
    width: @barSizeWhenIcon24px;
    transition: width @transitionTime;
  }
}

You can switch to different variables according to your icon size.

Now you can show tool-bar by just moving your mouse which is easier for me.

@liuderchi liuderchi changed the title Show Bar on Mouse Hover Show Tool Bar on Mouse Hover Apr 7, 2017
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

2 participants