Alien Night 主题 - 一个免费为 Discourse 提供的 Dark 主题

When using the Alient Night theme and upgrading to a more recent Discourse release, I noticed the colors on the hamburger menu items was no longer visible.

Before upgrading, it was:

After upgrading, it was difficult to see use the menu:

1 个赞

Thanks for the info @ryanerwin

I released a patch. Can you update and let me know if it worked please?
If you check the preview, it is looking good for me.

image

2 个赞

Hello @bubblecatcher

yes, sorry for that. I hard coded some colors in my theme, since I didn’t know better 2 years ago.
I will rework that part for sure to make it more user friendly. See below.

2 个赞

A note to everyone who is using my theme:

Hard times are going on for me right now. If all works out, I have much more time in about one month again.
Over the time Discourse implemented fundamental changes to themes and how you can make one.
I classify my theme for now as “legacy”, so I really want to rework this one completely or release a brand new one - to be announced.

5 个赞

Yes. That fixed it for me. Looks great!
Amazingly fast turnaround! Thanks!!!

BTW, I noticed that text boxes don’t seem to change color whether in dark mode or light mode… The text boxes seem really bright in Dark mode…


2 个赞

When the /unread page is empty, it displays an explanation in the education class. I think that it is not being switched properly, so it shows as the primary colour even in dark mode.

Maybe this is one of those changes that came more recently?

2 个赞

你好 :wave:

请不要问我这两年去哪儿了。真不敢相信我花了这么长时间,抱歉!

但它来了,版本 4.0.0

注意:随着版本 4.0.0 的发布,我对主题进行了重新设计/重构。它更具对比度,使用了 CSS 变量,并且整体上更流畅。

再次,实现了深色/浅色切换。这次,目前是借助外部组件(https://meta.discourse.org/t/dark-light-mode-toggle/215585)实现的。

看看它的效果:

更多印象:

附注:@awesomerobot 你的 Google Import 设置还在,希望没有损坏 :slight_smile:

4 个赞

我无法再向此主题添加组件。
与其他任何主题都能正常工作,但这个不行。实际上,在此更新之前我也无法做到。

感谢任何帮助 :blush:

1 个赞

哦?为什么会这样?你能展示一个截图吗?

在你那里看起来不是这样的吗?

1 个赞

我设法在禁用主题并重新激活后添加了主题组件。
这是启用组件后的样子

刷新页面后,汉堡菜单消失了。

我尝试禁用并重新启用该组件,但现在我无法将其添加到主题中。我点击了绿色按钮,但没有任何反应。

2 个赞

谢谢截图!
嗯,第一个截图似乎显示了一个 JavaScript 错误。我自己尝试了几种组合,目前无法重现。
我认为最好等到 Dark-Light Toggle 组件更新后再说。

2 个赞

他们现在已经更新了该组件。但至少我认为这并没有解决我的问题。

1 个赞

谢谢通知。很高兴它已更新 :+1:

我通过删除我的自定义侧边栏来更新我的主题,以便自己注入组件。
请更新您的主题并自行安装组件以启用暗/亮切换
(还不知道如何将主题组件打包到主题中)。

我不知道这是否能解决您的问题。如果不能,我认为您那里有问题比较大。

2 个赞

Discourse 应默认使用这个深邃优美的 :star_struck: 主题

2 个赞

如何更改此主题的默认字体?我是新手,请帮助我(例如,我希望默认字体为 Roboto - 大小 14)
谢谢!

2 个赞

您应该遵循此指南来更改字体主题:https://meta.discourse.org/t/include-assets-e-g-images-fonts-in-themes-and-components/62459?u=twofoursixeight

1 个赞

这个主题非常好。当我添加了一个组件“Gated Topic Category”时,在 Gated Topic Category 中,我尝试添加这个主题 Alien Night Theme,但出现了一个错误


你能帮帮我吗?

谢谢

1 个赞

它的名称中包含管道符 |。将其更改为连字符 -,例如。我不知道逗号 , 是否也可用

2 个赞

是的,奏效了。我刚改成了简单的 Alien Night
现在运行良好


谢谢
:heart_eyes:

1 个赞