사이드바 테마 전환

:discourse2: 요약 Sidebar Theme Toggle는 사용자가 선택할 수 있는 테마가 1개 이상인 경우 사이드바 메뉴의 하단에 테마 선택기를 추가합니다. 이 선택기는 로그인한 사용자와 익명 사용자 모두에게 작동합니다. 쉬운 전환을 위해 모든 사용자 선택형 테마에 이 기능을 추가하십시오.
:hammer_and_wrench: 리포지토리 링크 https://github.com/discourse/discourse-sidebar-theme-toggle
:open_book: Discourse 테마가 처음이신가요? Discourse 테마 사용 입문가 가이드

이 테마 컴포넌트를 설치하세요

기능

향후 사용자가 색상, 글꼴 크기, 테마를 하나의 메뉴에서 선택할 수 있도록 이 메뉴를 더 포괄적인 것으로 만들기 위해 추가 작업을 수행할 수 있습니다. 하지만 현재로서는 사이트가 https://meta.discourse.org/t/hamburger-theme-selector/61210!과 동일한 기본 동작을 제공합니다. :rocket:

이름 설명
토글 아이콘
테마 이름 숨기기

:discourse2: 우리가 호스팅하고 있나요? 테마 컴포넌트는 Pro, Business, Enterprise 플랜에서 사용 가능합니다.

33개의 좋아요

Will it work someday with iPhone/iPad too?

2개의 좋아요

It should already work on mobile devices, but let us know if there are any issues!

5개의 좋아요

Well… it doesn’t :wink: Not here, not on my own.

2개의 좋아요

ah I see, I’ll have to double check the app, looks like the footer’s getting cut off there… thanks for mentioning it!

3개의 좋아요

You are totally right. The issue is the Hub.

1개의 좋아요

This is a great idea for a component, but I’m having a little difficulty getting it to work. I’ve installed it and included it in all my themes but the drop-down doesn’t appear. If I toggle the “hide theme name” setting, the keyboard shortcut icon moves from the left side of the sidebar footer to the right, but no theme selector.

1개의 좋아요

Thanks Kris, unfortunately it’s not working on my site. Did a hard refresh of course, tried different themes that have no other components, don’t see anything relevant in the console or logs…

2개의 좋아요

Rebuild your instance. It will fix all of the issues mentioned above so far.

2개의 좋아요

oh yes, I should have mentioned that if you haven’t updated Discourse in the past few days you should do that as well

4개의 좋아요

I think I’m on the most recent version…

I’ll try rebuilding later. Our users tend to freak out a bit if the site goes offline with no warning.

3개의 좋아요

You should consider this :smiling_face_with_sunglasses:

2개의 좋아요

What about a dark theme selector? For light, dark and auto. That seems broken since I switched to the sidebar.

2개의 좋아요

A post was merged into an existing topic: While loading a new component on the site, the site is down

It would be nice to add color palettes as well. Is this possible?

Just create a separate Theme with a different name and configure its colour pallette differently. Done.

3개의 좋아요

Weird thing on the Meta, the “Hidden Whispers” theme only appears when the current theme is “Central”, “Default (full-width)”, “Fully”, “Meta Branded”, or “redditish”. Example:

Default:

redditish:

Not sure if it’s relevant, but I noticed while writing this that the themes where “Hidden Whispers” shows up are also the ones where the reply box covers up the theme toggle.

Hidden Whispers also doesn’t have a description in the theme category that I can find. This appears to be the only other mention of its existence? I feel like I’m losing my mind :smile:

edit: This might not be related to this theme-commponent, I see the same behavior in the profile > interface > theme menu.

1개의 좋아요

That’s a theme that the staff uses in cases where they may be taking a screenshot of Meta or something similar and don’t want whispers to be included. We have a separate theme component meant to hide it from the themes list for normal non-staff accounts, but it wasn’t added everywhere.

I think it should be fixed now, it shouldn’t appear in the list for you while using any theme. Apologies for the confusion!

3개의 좋아요

Ah, thank you for the clarification, the world makes sense again!

1개의 좋아요

Very good,I like it