[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-superstar c70360d76b 028/162: Adding "test image" face
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/org-superstar c70360d76b 028/162: Adding "test image" face-test.el |
Date: |
Fri, 31 Dec 2021 19:35:21 -0500 (EST) |
branch: elpa/org-superstar
commit c70360d76bf3be54ae2c286a482bcfdd7d5fd309
Author: D. Williams <d.williams@posteo.net>
Commit: D. Williams <d.williams@posteo.net>
Adding "test image" face-test.el
---
tests/README.org | 6 +++++
tests/face-test.el | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 79 insertions(+)
diff --git a/tests/README.org b/tests/README.org
index b07432b5ba..d5e24a60b3 100644
--- a/tests/README.org
+++ b/tests/README.org
@@ -33,5 +33,11 @@ return proper faces (or ~nil~). This module auto-enables
~column-number-mode~ as well as ~linum-mode~ for org to allow for manual,
character-wise comparison of the characters prettified.
+** =face-test.el=
+This file sets all faces to strongly contrasting colors and adds many
+different face properties to see if and how they work. It essentially
+serves as a test image for quick visual confirmation that all faces
+are applied consistently.
+
# LocalWords: README el
diff --git a/tests/face-test.el b/tests/face-test.el
new file mode 100644
index 0000000000..370f94c1bb
--- /dev/null
+++ b/tests/face-test.el
@@ -0,0 +1,73 @@
+;;; face-test.el --- Visualize how org-superstar faces modify the buffer. -*-
lexical-binding: t; -*-
+
+;;; Commentary:
+
+;;; This file creates a simple "test image" of a buffer to help
+;;; visualize the effects and limitations of common face attributes.
+
+;;; Code:
+
+
+
+(setq org-superstar-item-bullet-alist
+ '((?* . ?⌬)
+ (?+ . ?◐)
+ (?- . ?⏭)))
+
+(setq org-superstar-leading-bullet ?⁂)
+
+;; Mess with character heights (nicked from LaTeX)
+
+(set-face-attribute
+ 'default nil
+ :height 150)
+
+(set-face-attribute
+ 'org-document-title nil
+ :height 2.074 ;; \huge
+ :foreground 'unspecified
+ :inherit 'org-level-8)
+
+
+(set-face-attribute
+ 'org-level-1 nil
+ :height 1.728) ;; \LARGE
+
+(set-face-attribute
+ 'org-level-2 nil
+ :height 1.44) ;; \Large
+
+(set-face-attribute
+ 'org-level-3 nil
+ :height 1.2) ;; \large
+
+(set-face-attribute
+ 'org-level-4 nil
+ :height 1.0
+ :foreground "red")
+
+;; Only use the first 4 styles and do not cycle.
+(setq org-cycle-level-faces nil)
+(setq org-n-level-faces 4)
+
+(set-face-attribute
+ 'org-superstar-leading nil
+ :height 1.2
+ :weight 'light
+ :slant 'italic
+ :inverse-video t
+ :box '(:line-width 2 :color "magenta")
+ :inherit 'unspecified)
+
+(set-face-attribute
+ 'org-superstar-header-bullet nil
+ :height 1.2
+ :background "cyan"
+ :weight 'ultra-bold)
+
+(set-face-attribute
+ 'org-superstar-item nil
+ :foreground "lawn green"
+ :background "magenta"
+ :box t
+ :height 1.2)
- [nongnu] elpa/org-superstar 9c85b9eace 117/162: Create issue template: bug report, (continued)
- [nongnu] elpa/org-superstar 9c85b9eace 117/162: Create issue template: bug report, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 61896d5bcd 125/162: Updating README on volatile., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar c3955469d5 134/162: Updating feature list., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 8bfe6354d9 138/162: Updated documentation to address Issue #21., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar d0cb2f4b9f 150/162: Merge branch 'hide-all-todo-keywords' of andersjohansson, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar f14dd4dc8b 151/162: Fixed logic errors I introduced with last merge., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 03be6c0a30 162/162: Remove now redundant call to org-element-lineage, version bump., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 4a4ae121c1 061/162: Add further documentation regarding org-indent-mode., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 457b6cdb49 019/162: Updating README to include new features., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar fe061dce0c 043/162: added simple batch mode based unit tests for font lock, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar c70360d76b 028/162: Adding "test image" face-test.el,
Stefan Kangas <=
- [nongnu] elpa/org-superstar 5614c01993 081/162: fixed typo in README, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar d4948eb213 032/162: Updated README, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 45719ffd10 022/162: added a marker for melpa review, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar b196dc10af 025/162: adding first draft of public testing facilities, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 086ab28506 075/162: Updating Roadmap, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 4965e70c75 036/162: added reference for default headline fontification, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar c58d1e2689 046/162: force org-superstar to clean up --font-lock-keywords, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar a7d6b37ea2 062/162: Removing references to org-hide-leading-stars-before-indent-mode., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 6ef00c4eaf 034/162: renamed sample-titles to sample-headlines, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar bd99047cb3 048/162: updating README, Stefan Kangas, 2021/12/31