[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/material-theme 0193c06 095/118: Add true color support
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/material-theme 0193c06 095/118: Add true color support |
Date: |
Thu, 21 Oct 2021 18:06:28 -0400 (EDT) |
branch: elpa/material-theme
commit 0193c067e2db56b846b813af1a6d77f3da5fd533
Author: Anurag Mishra <anuragmi@usc.edu>
Commit: Anurag Mishra <anuragmi@usc.edu>
Add true color support
A patched version of Emacs allows for using true color in supported
terminal[1]. If such support is found, we use same color in terminal as
in a X-Window Emacs.
[1] https://gist.github.com/XVilka/8346728
---
material-light-theme.el | 12 +++++++-----
material-theme.el | 15 ++++++++-------
2 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/material-light-theme.el b/material-light-theme.el
index ab34fbc..fd080e6 100644
--- a/material-light-theme.el
+++ b/material-light-theme.el
@@ -47,12 +47,14 @@
(display-color-cells (selected-frame))
(let* ((class '((class color) (min-colors 89)))
(256color (eq (display-color-cells (selected-frame)) 256))
+ (truecolor (eq (display-color-cells (selected-frame)) 16777216))
+
+ (background (if (or window-system truecolor) "#263238" "#262626")) ;;
sidebar-container
+ (current-line (if (or window-system truecolor) "#37474f" "#3a3a3a"))
;; tree-row
+ (far-background (if (or window-system truecolor) "#1c1f26" "#121212"))
;; panel-control
+ (inactive-gray (if (or window-system truecolor) "#78909c" "#8a8a8a"))
+ (header-color (if (or window-system truecolor) "#455A64" "#5f5f5f"))
- (background (if window-system "#FAFAFA" "#FAFAFA")) ;; sidebar-container
- (current-line (if window-system "#ECEFF1" "#dadada")) ;; tree-row
- (far-background (if window-system "#e0f7fa" "#e0f7fa")) ;;
panel-control
- (inactive-gray (if window-system "#cfd8dc" "#cfd8dc"))
- (header-color (if window-system "#C8E6C9" "#C8E6C9"))
(subtle "#a7adba") ;; tree-row-hover-disclosure-button-control
(selection "#90A4AE") ;; tab-control-dirty-tab-close-button
(secondary-selection "#bf616a") ;; tab-control-hover-tab-close-button
diff --git a/material-theme.el b/material-theme.el
index 6fdad07..deeac8a 100644
--- a/material-theme.el
+++ b/material-theme.el
@@ -46,13 +46,14 @@
"A UI Theme for Emacs based on material design colors")
(display-color-cells (selected-frame))
(let* ((class '((class color) (min-colors 89)))
- (256color (eq (display-color-cells (selected-frame)) 256))
-
- (background (if window-system "#263238" "#262626")) ;; sidebar-container
- (current-line (if window-system "#37474f" "#3a3a3a")) ;; tree-row
- (far-background (if window-system "#1c1f26" "#121212")) ;;
panel-control
- (inactive-gray (if window-system "#78909c" "#8a8a8a"))
- (header-color (if window-system "#455A64" "#5f5f5f"))
+ (256color (eq (display-color-cells (selected-frame)) 256))
+ (truecolor (eq (display-color-cells (selected-frame)) 16777216))
+
+ (background (if (or window-system truecolor) "#263238" "#262626")) ;;
sidebar-container
+ (current-line (if (or window-system truecolor) "#37474f" "#3a3a3a"))
;; tree-row
+ (far-background (if (or window-system truecolor) "#1c1f26" "#121212"))
;; panel-control
+ (inactive-gray (if (or window-system truecolor) "#78909c" "#8a8a8a"))
+ (header-color (if (or window-system truecolor) "#455A64" "#5f5f5f"))
(subtle "#a7adba") ;; tree-row-hover-disclosure-button-control
(selection "#555555") ;; tab-control-dirty-tab-close-button
(secondary-selection "#bf616a") ;; tab-control-hover-tab-close-button
- [nongnu] elpa/material-theme f347114 062/118: mu4e: fix highlight background, especially light theme, (continued)
- [nongnu] elpa/material-theme f347114 062/118: mu4e: fix highlight background, especially light theme, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 8d9fb7f 068/118: mu4e: set forwared face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 4185d6d 079/118: Style org mode headlines and code blocks with button boxes, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 625864a 077/118: Add diff-hl faces and make consistent with other diff faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme cdd7e19 066/118: make mu4e consistent with light theme - headers subtle, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 765e777 076/118: Add spaceline python environment face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 8391b59 073/118: Merge pull request #21 from caisah/patch-1, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme ce6762e 086/118: Add faces for rpm-spec-mode, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 35ad0e9 083/118: Set company template for light variant, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 048d616 096/118: Fix light colors after truecolor support., ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 0193c06 095/118: Add true color support,
ELPA Syncer <=
- [nongnu] elpa/material-theme 3dd560b 105/118: Add diredfl support., ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 01c6ef3 082/118: Merge pull request #22 from martinp/company-template, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 2f1aa7b 084/118: add support for elfeed, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme b66838d 107/118: Update changelog. Release v1.2 for melpa stable., ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 3bfc400 089/118: Add avy-jump-mode styles same as ace-jump, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme a11330b 006/118: improved helm, org mode and guide-key colors, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme b7f262a 019/118: updated org mode screenshot, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme adc2297 021/118: added ace-jump faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme d61eb6f 032/118: switched search to light green highlight, ELPA Syncer, 2021/10/21
- [nongnu] elpa/material-theme 58ed09f 038/118: update more colors for light theme, ELPA Syncer, 2021/10/21