Mercurial > emacs
view etc/themes/tsdh-dark-theme.el @ 112396:e79e716435f4
Make Nextstep port handle multiple screens for resize and move.
* nsterm.h (ns_output): Add dont_constrain and zooming.
(EmacsView): Add ns_userRect.
* nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
if ns_alternate_modifier is none.
* nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
screen, not the window screen.
(x_set_window_size): Remove constraints.
Calculate origin.y only if zooming is 0 and without referring to a
screen.
(windowWillResize): Don't modify frameSize.
(windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
(initFrameFromEmacs): Initialize ns_userRect.
(windowShouldZoom): Set zooming to one. Remove all other code.
(windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
Zero it after restore.
(constrainFrameRect): New method for EmacsWindow.
(mouseDragged): Always post NSWindowDidResizeNotification after call to
windowWillResize.
author | Jan D. <jan.h.d@swipnet.se> |
---|---|
date | Fri, 21 Jan 2011 15:19:44 +0100 |
parents | 941344101fc6 |
children |
line wrap: on
line source
;;; tsdh-dark-theme.el --- Tassilo's dark custom theme ;; Copyright (C) 2011 Free Software Foundation, Inc. ;; This file is part of GNU Emacs. ;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. ;;; Code: (deftheme tsdh-dark "Theme with dark background used and created by Tassilo Horn.") (custom-theme-set-faces 'tsdh-dark '(default ((t (:background "gray20" :foreground "white smoke")))) '(diff-added ((t (:inherit diff-changed :background "dark green")))) '(diff-changed ((t (:background "midnight blue")))) '(diff-indicator-added ((t (:inherit diff-indicator-changed)))) '(diff-indicator-changed ((t (:weight bold)))) '(diff-indicator-removed ((t (:inherit diff-indicator-changed)))) '(diff-removed ((t (:inherit diff-changed :background "dark red")))) '(dired-directory ((t (:inherit font-lock-function-name-face :weight bold)))) '(header-line ((t (:inherit mode-line :inverse-video t)))) '(hl-line ((t (:background "grey28")))) '(message-header-subject ((t (:foreground "SkyBlue")))) '(minibuffer-prompt ((t (:background "yellow" :foreground "medium blue" :box (:line-width -1 :color "red" :style released-button) :weight bold)))) '(mode-line ((t (:box (:line-width -1 :color "red" :style released-button) :family "DejaVu Sans")))) '(mode-line-inactive ((t (:inherit mode-line :foreground "dim gray")))) '(org-agenda-date ((t (:inherit org-agenda-structure)))) '(org-agenda-date-today ((t (:inherit org-agenda-date :underline t)))) '(org-agenda-date-weekend ((t (:inherit org-agenda-date :foreground "dark green")))) '(org-agenda-structure ((t (:foreground "SkyBlue" :weight bold)))) '(org-hide ((t (:foreground "gray30")))) '(org-tag ((t (:weight bold)))) '(outline-1 ((t (:inherit font-lock-function-name-face :weight bold)))) '(outline-2 ((t (:inherit font-lock-variable-name-face :weight bold)))) '(outline-3 ((t (:inherit font-lock-keyword-face :weight bold)))) '(outline-4 ((t (:inherit font-lock-comment-face :weight bold)))) '(outline-5 ((t (:inherit font-lock-type-face :weight bold)))) '(outline-6 ((t (:inherit font-lock-constant-face :weight bold)))) '(outline-7 ((t (:inherit font-lock-builtin-face :weight bold)))) '(outline-8 ((t (:inherit font-lock-string-face :weight bold)))) '(region ((t (:background "SteelBlue4")))) '(show-paren-match ((t (:background "DarkGreen")))) '(show-paren-mismatch ((t (:background "deep pink")))) '(window-number-face ((t (:foreground "red" :weight bold))))) (provide-theme 'tsdh-dark)