Giter Site home page Giter Site logo

Comments (14)

DevCharly avatar DevCharly commented on May 30, 2024 3

Hiding cropped line is now implemented in master branch.

from flatlaf.

smileatom avatar smileatom commented on May 30, 2024 1

Hiding cropped edge, TY so much!. Would still like to be able to replace or hide the scroller and have the above described scrolling.

from flatlaf.

DevCharly avatar DevCharly commented on May 30, 2024

Thanks for your feedback. What exactly is the problem? Is it just the cropped line? I don't like that as well. Can't remember the reason for not removing it yet. But will do in next release.

image

image

Want also change the arrow colors slightly so that it is easier to see the difference between enabled and disabled arrows.

Any other issues? Is something wrong with the general functionality of TabScroller? Thx.

from flatlaf.

smileatom avatar smileatom commented on May 30, 2024

Yes that cropped line has been an eyesore for years. Im ok with the buttons but they dont respond as a normal scrollbar would. It would be nice to be able to literally scroll right to left like you can do in the IJ tab run. My ideal option would be to be able to replace the buttons with an "overflow" menu like IJ so that hidden tabs can be selected. and to have the tabs scroll using normal scrolling (from trackpad gestures or arrow keys)

from flatlaf.

smileatom avatar smileatom commented on May 30, 2024

I realize thats asking alot, but to get this tab layout into this century that CroppedEdge line simply must go.

from flatlaf.

Chrriis avatar Chrriis commented on May 30, 2024

There could be some settings to:

  • Have the left scroller on the left of the tabs, and the right scroller on the right of the tabs.
  • The mouse wheel over the tabs could scroll left right.

Note that while I would love having the above to improve the look, I would be afraid that it breaks my hack of the BasicTabbedPaneUI which allows me to have a component on the left and/or a component on the right. See:
TabsWithButtons

By-the-way, if I had a simple way to add my left and right components without a hack in FlatLaf, that would be great 😉

from flatlaf.

DevCharly avatar DevCharly commented on May 30, 2024

Thanks for your great ideas.

To summarize:

  • remove cropped line
  • arrow buttons should repeat scrolling as long as pressed (implemented in #187)
  • scroll with mouse wheel or trackpad if mouse is over tabs area; if active tab becomes invisible (scrolled to outside), then it should be scrolled back to visible when mouse leaves tabs area (as in IJ) (implemented in #187)
  • "overflow" menu like IJ (implemented in #190)
  • left arrow button on left side of tabs area and show left/right buttons only if necessary (hide disabled arrows) (implemented in #211)
  • support adding custom components to left and right sides of tabs area (implemented in #192)
  • optionally shorten long tab text (implemented in #199)
  • close button in tabs (issue #31) (implemented in #193)

With all that improvements it would also make sense to change the default tab layout policy to scrolling to avoid multi-line tabs.

from flatlaf.

Chrriis avatar Chrriis commented on May 30, 2024

I am not sure this bug should be closed: the possible improvements mentioned in @DevCharly 's 2nd comment are not implemented and they perfectly match the idea of this bug entry.

from flatlaf.

DevCharly avatar DevCharly commented on May 30, 2024

Yep, still like to implement improvements for tabbed panes...

from flatlaf.

DevCharly avatar DevCharly commented on May 30, 2024

Wheel scrolling and repeating arrow buttons are now implemented in PR #187

from flatlaf.

DevCharly avatar DevCharly commented on May 30, 2024

"Show Hidden Tabs" button (like in IntelliJ IDEA) is now implemented in PR #190

from flatlaf.

DevCharly avatar DevCharly commented on May 30, 2024

Support adding custom components to left and right sides of tabs area is now implemented in PR #192

from flatlaf.

DevCharly avatar DevCharly commented on May 30, 2024

Closable tabs are now implemented in PR #193

from flatlaf.

DevCharly avatar DevCharly commented on May 30, 2024

released in 0.44

from flatlaf.

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.