Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b8c631a5
Commit
b8c631a5
authored
Jun 25, 1996
by
Richard M. Stallman
Browse files
(x-create-frame-with-faces): Set threshold for "light color"
at .6 of the total for white.
parent
c1046d18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lisp/faces.el
lisp/faces.el
+4
-1
No files found.
lisp/faces.el
View file @
b8c631a5
...
...
@@ -1101,7 +1101,10 @@ selected frame."
((
<
(
apply
'+
(
x-color-values
(
cdr
(
assq
'background-color
params
))
frame
))
(
/
(
apply
'+
(
x-color-values
"white"
frame
))
3
))
;; Just looking at the screen,
;; colors whose values add up to .6 of the white total
;; still look dark to me.
(
*
(
apply
'+
(
x-color-values
"white"
frame
))
.6
))
'dark
)
(
t
'light
)))
(
modify-frame-parameters
frame
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment