theme.el 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. (setq redshift-temp-increment 100)
  2. (scroll-bar-mode -1)
  3. (menu-bar-mode -1)
  4. (tool-bar-mode -1)
  5. ;; TODO: Fix default-frame-alist
  6. ;; (setq default-frame-alist
  7. ;; (append (list ;; '(width . 73)
  8. ;; ;; '(height . 41)
  9. ;; ;; '(vertical-scroll-bars . nil)
  10. ;; '(internal-border-width . 12))
  11. ;; default-frame-alist))
  12. (defun wi-manoj-dark ()
  13. (interactive)
  14. (load-theme 'manoj-dark)
  15. (custom-theme-set-faces
  16. 'manoj-dark
  17. '(which-func ((t (:foreground "deep sky blue"))))
  18. '(font-lock-function-name-face ((t (:foreground "mediumspringgreen" :weight bold :height 1.0))))
  19. '(diff-refine-added ((t (:inherit diff-refine-change :background "#22aa22" :foreground "aquamarine1"))))
  20. '(diff-refine-removed ((t (:inherit diff-refine-change :background "#aa2222" :foreground "plum1"))))
  21. '(which-key-command-description-face ((t (:inherit font-lock-function-name-face :height 1.0))))
  22. '(fringe ((t (:background "black" :foreground "Wheat"))))
  23. '(header-line
  24. ((t (:background "black" :foreground "grey90" :height 0.9))))
  25. ;; '(scroll-bar ((t (:background "black" :foreground "WhiteSmoke"))))
  26. ;; '(mode-line ((t (:background "WhiteSmoke" :foreground "black"))))
  27. ;; '(mode-line-inactive ((t (:background "black" :box nil))))
  28. ;; '(mode-line-buffer-id ((t (:background "grey15" :foreground "red"))))
  29. '(mode-line ((t (:background "gray5" :foreground "gray60" :inverse-video nil :box (:line-width 1 :color "black") :height 1.0))))
  30. '(mode-line-inactive ((t (:background "#000000" :foreground "grey20" :inverse-video nil :box (:line-width 1 :color "black") :weight light :height 1.0))))
  31. '(mode-line-buffer-id ((t (:background "black" :foreground "red"))))
  32. '(elfeed-search-title-face ((t (:foreground "dim gray"))))
  33. '(elfeed-search-unread-title-face ((t (:foreground "white"))))
  34. '(completions-common-part ((t (:width normal :weight normal
  35. :slant normal :foreground "gold1"
  36. :background "black"))))
  37. '(highlight-stages-level-1-face ((t (:background "dark slate gray"))))
  38. '(highlight-stages-level-2-face ((t (:background "dark olive green"))))
  39. '(highlight-stages-level-3-face ((t (:background "sea green"))))
  40. '(highlight-stages-negative-level-face ((t (:background "dark cyan"))))
  41. '(rainbow-delimiters-depth-1-face ((t (:foreground "white"))))
  42. '(rainbow-delimiters-depth-7-face ((t (:foreground "white"))))
  43. '(next-error ((t (:background "steel blue"))))
  44. '(region ((t (:background "steel blue"))))
  45. '(link ((t (:foreground "deep sky blue" :underline t))))
  46. '(gnus-summary-high-unread ((t (:foreground "#ffffff" :weight normal))))
  47. '(gnus-summary-normal-unread ((t (:foreground "white smoke"))))
  48. '(highlight-indent-guides-character-face ((t (:foreground "gray15"))))
  49. '(org-date ((t (:foreground "pale turquoise" :underline nil))))
  50. '(org-link ((t (:foreground "pale turquoise" :underline nil)))))
  51. (setq sml/theme 'dark)
  52. (sml/setup))
  53. (defvar current-theme-gtk (getenv "GTK_THEME"))
  54. (defun load-theme-modus-vivendi ()
  55. (disable-theme 'smart-mode-line-light)
  56. (load-theme 'modus-vivendi t)
  57. (custom-theme-set-faces
  58. 'modus-vivendi
  59. '(elfeed-search-unread-title-face ((t (:inherit nil :foreground "#ffffff")))))
  60. (setq terminal-here-color 'dark)
  61. (setq current-theme-gtk t))
  62. (defun wi-toggle-theme ()
  63. "Toggle between dark and light themes."
  64. (interactive)
  65. (if current-theme-gtk
  66. (progn (mapc (lambda (theme)
  67. (disable-theme theme))
  68. '(modus-vivendi smart-mode-line-dark))
  69. (enable-theme 'smart-mode-line-light)
  70. (setq terminal-here-color 'light)
  71. (setq current-theme-gtk nil))
  72. (load-theme-modus-vivendi)))
  73. (load-theme-modus-vivendi)
  74. (setq terminal-here-color 'dark)
  75. ;; (set-scroll-bar-mode 'right)
  76. ;; (scroll-bar-mode -1)
  77. ;; (blink-cursor-mode)
  78. (setq hl-sexp-background-color "darkseagreen2")
  79. ;; [[https://github.com/emacs-helm/helm/issues/2341][Uncommon symbol on default helm-ff-cache-mode-lighter value · Issue #2341 · emacs-helm/helm]]
  80. (setq helm-ff-cache-mode-lighter " hff")
  81. ;;;
  82. ;;; Smart mode-line
  83. ;;;
  84. (setq sml/no-confirm-load-theme t)
  85. (when (daemonp) (setq sml/theme 'dark))
  86. (sml/setup)
  87. (custom-theme-set-faces
  88. 'smart-mode-line-light
  89. '(mode-line-inactive ((t :foreground "grey20" :background "#ffffff" :inverse-video nil))))