[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spacemacs-theme 94d3c142b3 330/336: Set org-column face to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spacemacs-theme 94d3c142b3 330/336: Set org-column face to inherit from default if using variable heights |
Date: |
Fri, 14 Jan 2022 10:59:49 -0500 (EST) |
branch: elpa/spacemacs-theme
commit 94d3c142b39d8d4457a3c95de406e8617a0d0219
Author: Dan Kessler <kesslerd@umich.edu>
Commit: Dan Kessler <kesslerd@umich.edu>
Set org-column face to inherit from default if using variable heights
If using spacemacs-theme with `spacemacs-theme-org-height` set to `t`, then
`org-mode` headings of level 1-3 will have non-standard heights so that
higher
level headlines "stick out" more, which is aesthetically pleasing. However,
if
one enables `column-view` (with e.g., `C-c C-x C-c`), then things will be
misaligned (see [this issue on `spacemacs`
repo](https://github.com/syl20bnr/spacemacs/issues/14058), since the column
headers are (likely) using the standard face height, but any level 1-3
headers
that appear in the column view table will have differing heights.
The `org-column` face is overlaid on top of `org-level-{1,2,3}` but any
unspecified lower attributes "shine through" and thus different rows of the
"table" generated by `column-view` have different `height` and so things
don't
line up properly.
Earlier (failed) attempts to fix this involved explicitly setting the
`:height:`
attribute of the `org-column` face to whatever the `:height` of the
`default`
face is. However, that was problematic in that if the value of the default
height later changed (either because the user changed it or one "zoomed" the
frame as in emacs), then the column face would not track. I also tried
setting
it dynamically to whatever the current value of default was, but if using
text
rescaling (which uses face-remap), then the remapping wasn't taken into
account
and so when rescaling text in the buffer, org-column face would not change.
The current fix sets the org-column face to inherit from default only if
spacemacs-theme-org-height is set to t. If not, then it inherits from nil
(which
AFAIK has no effect). One downside of this fix is that when
spacemacs-theme-org-height is set to t, org-column face will inherit all
defined attributes from default, which includes for example not bolding
text, so
it might clobber some desirable properties of underlying faces. However,
this
seems superior to have the columns be so misaligned that column view is
effectively broken.
---
spacemacs-common.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spacemacs-common.el b/spacemacs-common.el
index 38a9975c55..ef7282e34b 100644
--- a/spacemacs-common.el
+++ b/spacemacs-common.el
@@ -746,7 +746,7 @@ to 'auto, tags may not be properly aligned. "
`(org-block-end-line ((,class (:background ,cblk-ln-bg :foreground
,cblk-ln :extend t))))
`(org-clock-overlay ((,class (:foreground ,comp))))
`(org-code ((,class (:foreground ,cyan))))
- `(org-column ((,class (:background ,highlight))))
+ `(org-column ((,class (:background ,highlight :inherit ,(if
spacemacs-theme-org-height 'default)))))
`(org-column-title ((,class (:background ,highlight))))
`(org-date ((,class (:underline t :foreground ,var))))
`(org-date-selected ((,class (:background ,func :foreground ,bg1))))
- [nongnu] elpa/spacemacs-theme d79fa1800c 201/336: Support smerge (Fix #79), (continued)
- [nongnu] elpa/spacemacs-theme d79fa1800c 201/336: Support smerge (Fix #79), ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme ffaf4a44cf 198/336: Fix Gitter link in README, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 30b198ce87 217/336: Move screenshots to img dir, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 5a8d3fcefb 249/336: Update readme, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 0b68c7e1c1 229/336: Fix issue (#96) tweak company mode common highlight, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 7807f341e1 225/336: Merge pull request #94 from jabranham/markdown-tables, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 4dad086323 292/336: Merge pull request #142 from jb55/notmuch-light-perf, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 88f164c877 307/336: Fix term colors, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme fb75d303ed 319/336: Add dim paren faces for parinfer.el and parinfer-rust-mode.el, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 433e1c981a 317/336: Visual enhancements for diff-hl (fixes issue #168), ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 94d3c142b3 330/336: Set org-column face to inherit from default if using variable heights,
ELPA Syncer <=
- [nongnu] elpa/spacemacs-theme c8c4685800 329/336: Merge pull request #181 from jacekmigacz/master, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme b45fcdcd47 336/336: Merge pull request #189 from skangas/bump-version, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 4857e6eb7e 335/336: Bump version to 0.2, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 71bddf98da 221/336: Merge pull request #90 from chasinglogic/emacs-26, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 860969da2a 259/336: Account for new ESS faces, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 58f167d9ae 070/336: Fix #7, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 1ca313fbbd 074/336: Merge pull request #1 from ahmadseleem/ahmadseleem-mline, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme a079fcb66a 086/336: Making rainbow mismatched parens stand out a bit, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 856ba8cc52 088/336: Fix #20 python highlighting, ELPA Syncer, 2022/01/14
- [nongnu] elpa/spacemacs-theme 155d9e6325 106/336: Fix #26 org clocking face not visible, ELPA Syncer, 2022/01/14