Skip to content

Update highlight of sidebar tab buttons so they all match (fixes issue #4332) #4378

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

Merged
merged 4 commits into from
Apr 29, 2023

Conversation

svobs
Copy link
Contributor

@svobs svobs commented Apr 22, 2023


Description:

Analysis: For newer versions of MacOS (10.14+), the 3 Quick Settings tab buttons are displayed all in bold, and the active tab's button text tint is set to pure black. However, the Playlist & Chapters tabs were following (what looks like) an older scheme: the active tab was bold, and the other tab was not bold; neither had a special tint. (The Quick Settings tabs fall back to this behavior for older versions of MacOS).

This update changes Playlist & Chapters so that they match the behavior of the other three

@low-batt low-batt linked an issue Apr 22, 2023 that may be closed by this pull request
@svobs
Copy link
Contributor Author

svobs commented Apr 23, 2023

Update: found a case which I missed, where the Playlist was displayed in Music Mode right after starting IINA. Fixed in the latest commit.

@low-batt
Copy link
Contributor

For me the Playlist and Chapters tabs do not match. Looks like the Playlist font is bold and Chapters isn't?

@svobs
Copy link
Contributor Author

svobs commented Apr 23, 2023

For me the Playlist and Chapters tabs do not match. Looks like the Playlist font is bold and Chapters isn't?

Good catch. Made another commit to address this.

Copy link
Contributor

@low-batt low-batt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled PR, built, tested, looks good to me.

@@ -36,3 +36,9 @@ extension NSColor.Name {
static let sidebarTabTint = NSColor.Name("SidebarTabTint")
static let sidebarTabTintActive = NSColor.Name("SidebarTabTintActive")
}

@available(OSX 10.14, *)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@available(OSX 10.14, *)
@available(macOS 10.14, *)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in latest commit

@uiryuu uiryuu merged commit b79ec50 into iina:develop Apr 29, 2023
@uiryuu
Copy link
Member

uiryuu commented Apr 29, 2023

Thanks!

lhc70000 pushed a commit that referenced this pull request Apr 29, 2023
…#4332) (#4378)

* Update "Playlist" & "Chapters" sidebar tab buttons so that they match the styling of Quick Settings tabs

* Fix missing text hightlight for Playlist tab when starting in Music Mode

* Make Chapters tab bold by default to match other tabs

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

Successfully merging this pull request may close these issues.

Sidebar active tab button colors for do not match
3 participants