* Black Background with moe-dark
@ 2014-04-19 3:21 Esben Stien
2014-04-19 15:10 ` Esben Stien
2014-04-19 15:50 ` Yuri Khan
0 siblings, 2 replies; 3+ messages in thread
From: Esben Stien @ 2014-04-19 3:21 UTC (permalink / raw)
To: help-gnu-emacs
I'm trying to get a black background with moe-dark theme, but no matter
what I try, it won't get any darker than this:
https://raw.github.com/kuanyui/moe-theme.el/master/pics/dark01.png
In moe-dark-theme.el, there's:
(white-1 "#c6c6c6") (white-2 "#c6c6c6") (white-3 "#b2b2b2") (black-1 "#a8a8a8") (black-2 "#8a8a8a")
(black-2-5 "#6c6c6c") (black-3 "#4e4e4e") (black-4 "#3a3a3a")
(black-5 "#303030") (black-6 "#000000")
, which seems ok.
The code below it sets the background color, to my understanding:
(custom-theme-set-faces
'moe-dark
;; Ensure sufficient contrast on low-color terminals.
`(default ((((class color) (min-colors 4096))
(:foreground ,white-1 :background ,cyan-4))
(((class color) (min-colors 256))
(:foreground ,white-1 :background ,black-6));;set this value for background
(,class
(:foreground ,white-1 :background ,black-6))))
`(cursor ((,class (:background ,black-6))))
If I set it to white-2 or any other color in the list, it works fine,
but black-6, which is supposed to be pitch black, is gray.
Any idea if there's any other variables here that somehow modifies this?
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
sip:b0ef@ e e
jid:b0ef@ n n
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Black Background with moe-dark
2014-04-19 3:21 Black Background with moe-dark Esben Stien
@ 2014-04-19 15:10 ` Esben Stien
2014-04-19 15:50 ` Yuri Khan
1 sibling, 0 replies; 3+ messages in thread
From: Esben Stien @ 2014-04-19 15:10 UTC (permalink / raw)
To: help-gnu-emacs
Esben Stien <b0ef@esben-stien.name> writes:
> I'm trying to get a black background with moe-dark theme, but no matter
> what I try, it won't get any darker
I've tried M-x set-background-color RET black and I've tried
(add-to-list 'default-frame-alist '(background-color . "black"))
If I do:
(set-face-background 'default "green")
, both gui emacs and the console gets to be green, but if I set it back
to black, the gui emacs is black, but the console emacs is just gray again.
If I don't load the theme, it's back to the delicious black emacs.
Does colors mix somewhere?;)
Are there any other ways to force background color to black?
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
sip:b0ef@ e e
jid:b0ef@ n n
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Black Background with moe-dark
2014-04-19 3:21 Black Background with moe-dark Esben Stien
2014-04-19 15:10 ` Esben Stien
@ 2014-04-19 15:50 ` Yuri Khan
1 sibling, 0 replies; 3+ messages in thread
From: Yuri Khan @ 2014-04-19 15:50 UTC (permalink / raw)
To: Esben Stien; +Cc: help-gnu-emacs@gnu.org
On Sat, Apr 19, 2014 at 10:21 AM, Esben Stien <b0ef@esben-stien.name> wrote:
> I'm trying to get a black background with moe-dark theme, but no matter
> what I try, it won't get any darker than this:
>
> https://raw.github.com/kuanyui/moe-theme.el/master/pics/dark01.png
Your screenshot shows Emacs running in tmux running in Konsole running
in X11. So there are quite a few layers of color translation.
I assume your X11 is capable of displaying 24-bit color.
Start a bare Konsole, without tmux inside. Run the following two
commands and check that their output matches:
$ echo $TERM
xterm-256color
$ tput colors
256
If that says 8 or 16, you are limited to the colors that are
configured in your Konsole profile. Find out how to set up Konsole to
display 256 colors. (This might be as easy as exporting the
environment variable TERM=xterm-256color in your .bashrc.)
Start tmux. Now, run the same two commands and check their output:
$ echo $TERM
screen-256color
$ tput colors
256
If that says 8 or 16, find out how to set up tmux to display 256
colors. (On my system, this needs “set -g default-terminal
"screen-256color"” in my .tmux.conf.)
Once both Konsole and tmux correctly support 256 colors, there remains
the issue of color matching. The 256-color terminal palette contains
16 entries that are mapped to the standard 16 colors. Most terminal
emulators allow configuring the exact shades of these; not all let
applications know which exact colors are configured. So Emacs may
think #000000 is palette index 0, but in reality index 0 might be set
up for a dark gray.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-19 15:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-19 3:21 Black Background with moe-dark Esben Stien
2014-04-19 15:10 ` Esben Stien
2014-04-19 15:50 ` Yuri Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).