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

Chrome-like tabs #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FelisDiligens
Copy link

This PR changes the tab style to (more-or-less) resemble Chrome's tabs.
This is more of an aesthetic change and personal preference, but it also changes the CSS such that the tabs are always placed at the bottom (or top, configurable) of the plugin panel.

Changes

  • Adds a chrome-like style to the tabs
    • Adds rounded corners, and bend out rounded corners based on this web article: (Better) Tabs with Round Out Borders
    • Pin/Unpin button is always visible.
    • Adds code to make sure that the rounded out borders have the correct color, as configurable through the settings.
    • Tabs automatically grow to the maximum size (150px width by default), and shrink if space is limited.
  • Removes iframe borders, such that the tabs can seamlessly "connect" to the rest of Joplin's UI.
  • Changed the "Force tabs layout" options:
    • Replaced "Horizontal" option with "Horizontal (tabs above)" and "Horizontal (tabs below)".
  • Changed the default of "Note Tabs height (px)" from 35 to 30.
  • Breadcrumbs are placed above the tabs now when "Horizontal (tabs below)" is selected in the settings.

Screenshots

Bildschirmfoto vom 2023-05-02 10-05-37

Three tabs on top, Joplin's light theme

Bildschirmfoto vom 2023-05-02 09-33-41

Two tabs on top + Breadcrumbs, custom Catppuccin theme

Bildschirmfoto vom 2023-05-02 09-07-31

Two tabs at bottom + Breadcrumbs, Joplin's dark theme

Bildschirmfoto vom 2023-05-02 09-36-36

Vertical tabs still work as intended ("Auto" and "Vertical")

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

Successfully merging this pull request may close these issues.

None yet

1 participant