界面主題配色 / Support more themes
目前"檢視區塊"是白色的,建議可以有暗色系的版本可切換, 同樣的"編輯區塊"也建議有亮色系可切換。 如果可以的話,能自己選色配置也是不錯。
Now only have white theme in "view" area, it would be nice to have some dark theme available. Also suggest the "edit" area have some light theme to choose. It would be better than enough if user can setup their own themes.
Support light editor theme in 09fb1209678b2acc18ee13ee0c407278e67d2c06
@jackycute You mean dark theme?
@jimmybrancaccio No, I mean light theme of editor. The toggle showing on below image.
@jackycute Ah okay, I was reading the issue/comment and code wrong then 😝 Carry on!
As per the Original Posting (OP) I suggest to rename this issue more specifically to Support night theme, which appears to be the main concern here.
Here are some suggestions, but that covers only the easy things :smile: tables, code and some other things are still missing:
/* hackmd dark theme */
body, .ui-view-area, .markdown-body, .markdown-body img {
background-color: #1E2126;
color: #ABB2BF;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6, .markdown-body hr {
border-color: #444 !important;
}
.ui-toc-dropdown .nav > .active:focus > a, .ui-toc-dropdown .nav > .active:hover > a, .ui-toc-dropdown .nav > .active > a {
color: #ABB2BF;
border-left-color: #337AB7;
}
.ui-toc-dropdown .nav > li > a:focus, .ui-toc-dropdown .nav > li > a:hover {
color: #AAA;
border-left-color: #337AB7;
}
.markdown-body blockquote {
color: #AAA;
border-left-color: #444;
}
.ui-edit-area .ui-resizable-handle.ui-resizable-e {
background-color: #1C1C1E;
border: 1px solid #343434;
box-shadow: none;
}
+1 I am amazed we have a dark editor but a blindingly bright view mode. I would appreciate this feature very much!
I just merged this latest change to master. I'll close this issue for now. And verify that everything works correctly during this evening.
Further themes are not planned right now.