AnubisNekhet / AnuPpuccin

Personal theme for Obsidian
GNU General Public License v3.0
2.08k stars 163 forks source link

[Bug] Custom Checkboxes unavailable in Reading View #139

Closed ProudBenzene closed 1 year ago

ProudBenzene commented 1 year ago

Hello, It seems that in the latest version, Custom Checkboxes are unavailable in the Reading Mode, but normal in the Preview Mode.

The Reading View:

image

The Preview Mode:

image

Thanks for your hard work!😁

AnubisNekhet commented 1 year ago

I can't seem to reproduce the issue. Please send your style setting configs.

ProudBenzene commented 1 year ago
{
  "anuppuccin-theme-settings@@anuppuccin-theme-light": "ctp-rosepine-light",
  "anuppuccin-theme-settings@@anuppuccin-theme-dark": "ctp-mocha-old",
  "anuppuccin-theme-settings@@anuppuccin-light-theme-accents": "ctp-accent-light-green",
  "anuppuccin-theme-settings@@anuppuccin-theme-accents": "ctp-accent-peach",
  "anuppuccin-theme-settings@@anuppuccin-accent-toggle": true,
  "anuppuccin-theme-settings@@ctp-custom-red@@dark": "#E65C5C",
  "anuppuccin-theme-settings@@ctp-custom-red@@light": "#AA4545",
  "anuppuccin-theme-settings@@ctp-custom-green@@dark": "#648D6B",
  "anuppuccin-theme-settings@@ctp-custom-green@@light": "#648D6B",
  "anuppuccin-theme-settings@@ctp-custom-blue@@dark": "#4286F7",
  "anuppuccin-theme-settings@@ctp-custom-blue@@light": "#4286F7",
  "anuppuccin-theme-settings@@anp-active-line": "anp-current-line",
  "anuppuccin-theme-settings@@anp-callout-select": "anp-callout-vanilla-normal",
  "anuppuccin-theme-settings@@anp-callout-color-toggle": true,
  "anuppuccin-theme-settings@@anp-callout-fold-position": "1",
  "anuppuccin-theme-settings@@anp-custom-checkboxes": true,
  "anuppuccin-theme-settings@@anp-speech-bubble": true,
  "anuppuccin-theme-settings@@anp-codeblock-wrap-edit": "anp-codeblock-edit-nowrap",
  "anuppuccin-theme-settings@@anp-codeblock-wrap-preview": "anp-codeblock-preview-nowrap",
  "anuppuccin-theme-settings@@anp-list-toggle": true,
  "anuppuccin-theme-settings@@anp-table-toggle": true,
  "anuppuccin-theme-settings@@anp-table-width": true,
  "anuppuccin-theme-settings@@anp-table-auto": true,
  "anuppuccin-theme-settings@@anp-th-highlight": true,
  "anuppuccin-theme-settings@@anp-td-highlight": "anp-td-alt-rows",
  "anuppuccin-theme-settings@@anp-table-highlight-opacity": 0.5,
  "anuppuccin-theme-settings@@anp-table-align-th": "center",
  "anuppuccin-theme-settings@@anp-table-align-td": "center",
  "anuppuccin-theme-settings@@anp-table-width-pct": 100,
  "anuppuccin-theme-settings@@anp-toggle-preview": true,
  "anuppuccin-theme-settings@@anp-color-transition-toggle": true,
  "anuppuccin-theme-settings@@anp-button-metadata-toggle": true,
  "anuppuccin-theme-settings@@anp-print": true,
  "anuppuccin-theme-settings@@anp-cursor": "pointer",
  "anuppuccin-theme-settings@@anp-font-live-preview-wt": "600",
  "anuppuccin-theme-settings@@anp-font-preview-wt": "400",
  "anuppuccin-theme-settings@@anp-font-editor-wt": "500",
  "anuppuccin-theme-settings@@anp-header-color-toggle": true,
  "anuppuccin-theme-settings@@anp-header-margin-toggle": true,
  "anuppuccin-theme-settings@@anp-header-divider-color-toggle": true,
  "anuppuccin-theme-settings@@anp-header-margin-value": 20,
  "anuppuccin-theme-settings@@h1-font": "霞鹜文楷 屏幕阅读版",
  "anuppuccin-theme-settings@@h1-size": 1.6,
  "anuppuccin-theme-settings@@anp-h1-color-custom": "anp-h1-maroon",
  "anuppuccin-theme-settings@@anp-h1-divider": true,
  "anuppuccin-theme-settings@@h2-font": "霞鹜文楷 屏幕阅读版",
  "anuppuccin-theme-settings@@h2-size": 1.4,
  "anuppuccin-theme-settings@@anp-h2-color-custom": "anp-h2-blue",
  "anuppuccin-theme-settings@@h3-font": "霞鹜文楷 屏幕阅读版",
  "anuppuccin-theme-settings@@h3-size": 1.3,
  "anuppuccin-theme-settings@@anp-h3-color-custom": "anp-h3-yellow",
  "anuppuccin-theme-settings@@h4-font": "霞鹜文楷 屏幕阅读版",
  "anuppuccin-theme-settings@@h4-size": 1.2,
  "anuppuccin-theme-settings@@anp-h4-color-custom": "anp-h4-lavender",
  "anuppuccin-theme-settings@@h5-font": "霞鹜文楷 屏幕阅读版",
  "anuppuccin-theme-settings@@h5-size": 1.1,
  "anuppuccin-theme-settings@@anp-h5-color-custom": "anp-h5-mauve",
  "anuppuccin-theme-settings@@h6-font": "霞鹜文楷 屏幕阅读版",
  "anuppuccin-theme-settings@@h6-size": 1.05,
  "anuppuccin-theme-settings@@anp-h6-color-custom": "anp-h6-pink",
  "anuppuccin-theme-settings@@anp-decoration-toggle": true,
  "anuppuccin-theme-settings@@anp-bold-custom": "anp-bold-red",
  "anuppuccin-theme-settings@@anp-italic-custom": "anp-italic-blue",
  "anuppuccin-theme-settings@@anp-canvas-dark-bg": true,
  "anuppuccin-theme-settings@@anp-background-image-toggle": true,
  "anuppuccin-theme-settings@@anp-background-image-light": "url(\"https://figure-bed123.oss-cn-beijing.aliyuncs.com/202301052213308.jpg\")",
  "anuppuccin-theme-settings@@anp-custom-bg-brightness-light": 0.5,
  "anuppuccin-theme-settings@@anp-custom-bg-blur-light": 2,
  "anuppuccin-theme-settings@@anp-custom-bg-card-fg-opacity-light": 0.7,
  "anuppuccin-theme-settings@@anp-colorful-frame": true,
  "anuppuccin-theme-settings@@anp-colorful-frame-icon-toggle-light": true,
  "anuppuccin-theme-settings@@anp-colorful-frame-icon-toggle-dark": true,
  "anuppuccin-theme-settings@@anp-colorful-frame-opacity": 1,
  "anuppuccin-theme-settings@@anp-colorful-frame-color@@dark": "#514848",
  "anuppuccin-theme-settings@@anp-colorful-frame-color@@light": "#F4E5D0",
  "anuppuccin-theme-settings@@anp-collapse-folders": true,
  "anuppuccin-theme-settings@@anp-file-icons": true,
  "anuppuccin-theme-settings@@anp-custom-vault-toggle": true,
  "anuppuccin-theme-settings@@anp-file-label-align": "1",
  "anuppuccin-theme-settings@@anp-alt-rainbow-style": "anp-simple-rainbow-color-toggle",
  "anuppuccin-theme-settings@@anp-rainbow-folder-bg-opacity": 0.75,
  "anuppuccin-theme-settings@@anp-simple-rainbow-title-toggle": true,
  "anuppuccin-theme-settings@@anp-simple-rainbow-icon-folder-toggle": true,
  "anuppuccin-theme-settings@@anp-simple-rainbow-indentation-toggle": true,
  "anuppuccin-theme-settings@@anp-simple-rainbow-collapse-toggle": true,
  "anuppuccin-theme-settings@@anp-simple-rainbow-icon-toggle": true,
  "anuppuccin-theme-settings@@anp-rainbow-subfolder-color-toggle": true,
  "anuppuccin-theme-settings@@anp-status-bar-select": "anp-floating-status-bar",
  "anuppuccin-theme-settings@@anp-alt-tab-style": "anp-safari-tab-toggle",
  "anuppuccin-theme-settings@@anp-depth-tab-opacity": 0.7,
  "anuppuccin-theme-settings@@anp-safari-tab-animated": true,
  "anuppuccin-theme-settings@@anp-translucency-opacity": 0.95,
  "anuppuccin-theme-settings@@anp-layout-select": "anp-card-layout",
  "anuppuccin-theme-settings@@anp-bg-fix": true,
  "anuppuccin-theme-settings@@anp-hide-borders": true,
  "anuppuccin-theme-settings@@anp-card-radius": 16,
  "anuppuccin-theme-settings@@anp-card-shadows": true,
  "anuppuccin-theme-settings@@anp-card-layout-actions": true,
  "anuppuccin-theme-settings@@anp-card-layout-filebrowser": true
}

I copied the codes from my Style Settings, is this all right to reproduce the issue?

AnubisNekhet commented 1 year ago

I cannot reproduce the issue on a fresh vault, I'd recommend disabling all snippets and/or plugins to see what's affecting it.

ProudBenzene commented 1 year ago

I cannot reproduce the issue on a fresh vault, I'd recommend disabling all snippets and/or plugins to see what's affecting it.

It's really strange that I created a new vault on my computer with only the anuppuccin and style settings plugin installed and still reproduced the issue.

image

If needed, I can share you with the markdown file. Maybe it is the file or macOS that mak e the checkboxes unavailble?🫥

---
alias: 主题
tags: 
---
# AnuPpuccin

## Custom checkboxes & Speech bubbles

![|300](https://github.com/AnubisNekhet/AnuPpuccin/raw/main/assets/gh-checkbox-preview.webp)

| Syntax  |   Description   |
|:-------:|:---------------:|
| `- [ ]` |    Unchecked    |
| `- [x]` |     Checked     |
| `- [>]` |   Rescheduled   |
| `- [<]` |    Scheduled    |
| `- [!]` |    Important    |
| `- [-]` |    Cancelled    |
| `- [/]` |   In Progress   |
| `- [?]` |    Question     |
| `- [*]` |      Star       |
| `- [n]` |      Note       |
| `- [l]` |    Location     |
| `- [i]` |   Information   |
| `- [I]` |      Idea       |
| `- [S]` |     Amount      |
| `- [p]` |       Pro       |
| `- [c]` |       Con       |
| `- [b]` |    Bookmark     |
| `- ["]` |      Quote      |
| `- [0]` | Speech bubble 0 |
| `- [1]` | Speech bubble 1 |
| `- [2]` | Speech bubble 2 |
| `- [3]` | Speech bubble 3 |
| `- [4]` | Speech bubble 4 |
| `- [5]` | Speech bubble 5 |
| `- [6]` | Speech bubble 6 |
| `- [7]` | Speech bubble 7 |
| `- [8]` | Speech bubble 8 |
| `- [9]` | Speech bubble 9 |

- [ ] 这是
- [x] 这是
- [>] 这是
- [<] 这是
- [!] 这是
- [-] 这是
- [/] 这是
- [?] 这是
- [*] 这是
- [n] 这是
- [L] 这是
- [i] 这是
- [I] 这是
- [S] 这是
- [p] 这是
- [c] 这是

- ["] 再见

- [0] 这是0
- [1] 这是1
- [2] 这是2
- [3] 这是3
- [4] 这是4
- [5] 这是5
- [6] 这是6
- [7] 这是7
- [8] 这是8
- [9] 这是9

My Obsidian and the theme are both the latest🤔

AnubisNekhet commented 1 year ago

I've found the issue, it was due to the specific markdown being used. I've pushed an update which fixes this issue.

axelson commented 1 year ago

Hi is it possible to get a release that includes this fix? I think the latest release doesn't yet include https://github.com/AnubisNekhet/AnuPpuccin/commit/30b8949d3c88d4441d31febf7f3cb867c41b25c1