Skip to content

Commit

Permalink
Removal: Custom Background
Browse files Browse the repository at this point in the history
Removed custom backgrounds in accordance to [Obsidian Developer Policies](https://docs.obsidian.md/Developer+policies)
  • Loading branch information
AnubisNekhet committed Nov 22, 2023
1 parent 51312af commit 0d481e6
Show file tree
Hide file tree
Showing 11 changed files with 944 additions and 1,251 deletions.
137 changes: 77 additions & 60 deletions README.md

Large diffs are not rendered by default.

Binary file removed assets/bg-image-preview.webp
Binary file not shown.
371 changes: 132 additions & 239 deletions obsidian.css

Large diffs are not rendered by default.

97 changes: 0 additions & 97 deletions src/modules/Core/style-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1951,103 +1951,6 @@ settings:
title: Darker Canvas Background
type: class-toggle
# Workspace :: Custom Background
-
id: anp-custom-background-header
title: Background
description: Custom workspace backgrounds
type: heading
level: 2
collapsed: true
-
id: anp-background-image-toggle
title: Enable Custom Background (WIP)
description: Not compatible with colorful frame
type: class-toggle
# Workspace :: Custom Background :: Light Mode
-
id: anp-custom-background-light-header
title: Light Mode
description:
type: heading
level: 3
collapsed: true
-
id: anp-background-image-light
title: Custom Background Image URL
description: 'Formatted as url("https://link-to-image.png")'
type: variable-text
default: url("https://link-to-image.png")
-
id: anp-custom-bg-brightness-light
title: Background brightness
type: variable-number-slider
min: 0
max: 2
step: 0.05
default: 0.7
-
id: anp-custom-bg-blur-light
title: Background blur
type: variable-number-slider
min: 0
max: 20
step: 1
default: 5
format: px
-
id: anp-custom-bg-card-fg-opacity-light
title: Container opacity
type: variable-number-slider
min: 0
max: 1
step: 0.05
default: 0.4
# Workspace :: Custom Background :: Dark Mode
-
id: anp-custom-background-dark-header
title: Dark Mode
description:
type: heading
level: 3
collapsed: true
-
id: anp-background-image-dark
title: Custom Background Image URL
description: 'Formatted as url("https://link-to-image.png")'
type: variable-text
default: url("https://link-to-image.png")
-
id: anp-custom-bg-brightness-dark
title: Background brightness
type: variable-number-slider
min: 0
max: 1
step: 0.05
default: 0.7
-
id: anp-custom-bg-blur-dark
title: Background blur
type: variable-number-slider
min: 0
max: 20
step: 1
default: 5
format: px
-
id: anp-custom-bg-card-fg-opacity-dark
title: Container opacity
type: variable-number-slider
min: 0
max: 1
step: 0.05
default: 0.4
# Workspace :: Colorful Frame
-
Expand Down
91 changes: 0 additions & 91 deletions src/modules/Features/background-image.scss

This file was deleted.

45 changes: 24 additions & 21 deletions src/modules/Features/collapse-folders.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
.anp-collapse-folders .workspace-leaf-content:not([data-type="search"]) {
.nav-folder.mod-root .nav-folder > .nav-folder-children :is(.nav-file,.nav-folder) {
margin-left: var(--size-2-1);
}
.tree-item .nav-folder-title {
align-items: center;
}
.tree-item .collapse-icon {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 24' fill='none' stroke='currentColor' stroke-linejoin='round' stroke-linecap='round' stroke-width='2'%3E%3Cpath d='M6 14l1.45-2.9A2 2 0 0 1 9.24 10H22a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H20a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E%0A");
-webkit-mask-repeat: no-repeat;
background-color: currentColor;
display: flex;
flex-basis: 100%;
height: 16px;
width: 17px;
}
.tree-item.is-collapsed .collapse-icon {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 24' fill='none' stroke='currentColor' stroke-linejoin='round' stroke-linecap='round' stroke-width='2'%3E%3Cpath d='M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2z'/%3E%3Cpath d='M2 10h20' /%3E%3C/svg%3E%0A");
}
.tree-item .collapse-icon svg {
display: none;
}
.nav-folder.mod-root
.nav-folder
> .nav-folder-children
:is(.nav-file, .nav-folder) {
margin-left: var(--size-2-1);
}
.tree-item .nav-folder-title {
align-items: center;
}
.tree-item .collapse-icon {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 24' fill='none' stroke='currentColor' stroke-linejoin='round' stroke-linecap='round' stroke-width='2'%3E%3Cpath d='M6 14l1.45-2.9A2 2 0 0 1 9.24 10H22a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H20a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E%0A");
-webkit-mask-repeat: no-repeat;
background-color: currentColor;
display: flex;
flex-basis: 100%;
height: 16px;
width: 17px;
}
.tree-item.is-collapsed .collapse-icon {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 24' fill='none' stroke='currentColor' stroke-linejoin='round' stroke-linecap='round' stroke-width='2'%3E%3Cpath d='M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2z'/%3E%3Cpath d='M2 10h20' /%3E%3C/svg%3E%0A");
}
.tree-item .collapse-icon svg {
display: none;
}
}
Loading

0 comments on commit 0d481e6

Please sign in to comment.