Skip to content

Commit

Permalink
1.11.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Feb 9, 2023
1 parent 921cbd7 commit bbe68d2
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 17 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.11.11

- (Fix) Fixed an issue where rarity-colors were illegible in dark theme.
- (New) New UX setting to collapse the navigation bar by default.

# 1.11.10

- (Refinement) Improved dark-theme styling of the compendium browser.
Expand Down
4 changes: 4 additions & 0 deletions languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@
"name": "Collapse sidebar by default?",
"hint": "Uses the collapsed state as the initial state"
},
"start-navigation-collapsed": {
"name": "Collapse navigation by default?",
"hint": "Uses the collapsed state as the initial state"
},
"no-logo": {
"name": "Hide Foundry logo?",
"hint": "Removes the Foundry logo in the top left"
Expand Down
5 changes: 5 additions & 0 deletions modules/misc-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,8 @@ Hooks.once("ready", (app, html, data) => {
if (!game.settings.get(`${MODULE_NAME}`, "ux.start-sidebar-collapsed")) return;
ui.sidebar.collapse();
});

Hooks.once("ready", (app, html, data) => {
if (!game.settings.get(`${MODULE_NAME}`, "ux.start-navigation-collapsed")) return;
ui.nav.collapse();
});
10 changes: 10 additions & 0 deletions modules/settings/ux-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class UXSettings extends SettingsMenuDorakoUI {
"enable-player-tags",
"rolltype-indication",
"start-sidebar-collapsed",
"start-navigation-collapsed",
];

rerenderChatMessages() {}
Expand Down Expand Up @@ -115,6 +116,15 @@ export class UXSettings extends SettingsMenuDorakoUI {
type: Boolean,
requiresReload: false,
},
"start-navigation-collapsed": {
name: "pf2e-dorako-ui.settings.ux.start-navigation-collapsed.name",
hint: "pf2e-dorako-ui.settings.ux.start-navigation-collapsed.hint",
scope: "client",
config: true,
default: false,
type: Boolean,
requiresReload: false,
},
"no-logo": {
name: "pf2e-dorako-ui.settings.ux.no-logo.name",
hint: "pf2e-dorako-ui.settings.ux.no-logo.hint",
Expand Down
17 changes: 9 additions & 8 deletions sass/pf2e/_actor-sheet-dark.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
.dorako-ui.dark-theme {
// important to overwrite system's highly specific styling
h4.rarity {
&-common {
color: var(--rarity-common);
border-color: var(--rarity-common);
color: var(--rarity-common) !important;
border-color: var(--rarity-common) !important;
}
&-uncommon {
color: var(--rarity-uncommon);
border-color: var(--rarity-uncommon);
color: var(--rarity-uncommon) !important;
border-color: var(--rarity-uncommon) !important;
}
&-rare {
color: var(--rarity-rare);
border-color: var(--rarity-rare);
color: var(--rarity-rare) !important;
border-color: var(--rarity-rare) !important;
}
&-unique {
color: var(--rarity-unique);
border-color: var(--rarity-unique);
color: var(--rarity-unique) !important;
border-color: var(--rarity-unique) !important;
}
}

Expand Down
16 changes: 8 additions & 8 deletions styles/dorako-ui.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion styles/dorako-ui.css.map

Large diffs are not rendered by default.

0 comments on commit bbe68d2

Please sign in to comment.