@@ -3,6 +3,7 @@ import icons from "lib/icons"
|
||||
import options from "options"
|
||||
import { ThemesMenu } from "./pages/theme/index"
|
||||
import { SettingsMenu } from "./pages/config/index"
|
||||
import "./side_effects";
|
||||
|
||||
type Page = "Configuration" | "Theming"
|
||||
|
||||
|
||||
@@ -32,6 +32,10 @@ export const BarSettings = () => {
|
||||
Option({ opt: options.bar.workspaces.icons.available, title: 'Workspace Available', type: 'string' }),
|
||||
Option({ opt: options.bar.workspaces.icons.active, title: 'Workspace Active', type: 'string' }),
|
||||
Option({ opt: options.bar.workspaces.icons.occupied, title: 'Workspace Occupied', type: 'string' }),
|
||||
Option({ opt: options.bar.workspaces.show_numbered, title: 'Show Workspace Numbers', type: 'boolean' }),
|
||||
Option({ opt: options.bar.workspaces.numbered_active_indicator, title: 'Numbered Workspace Identifier', subtitle: 'Only applicable if Workspace Numbers are enabled', type: 'enum', enums: ["underline", "highlight"] }),
|
||||
Option({ opt: options.theme.bar.buttons.workspaces.numbered_active_highlight_border, title: 'Highlight Radius', subtitle: 'Only applicable if Workspace Numbers are enabled', type: 'string' }),
|
||||
Option({ opt: options.theme.bar.buttons.workspaces.numbered_active_text_color, title: 'Highlighted Text Color', subtitle: 'Only applicable if Workspace Numbers are enabled', type: 'color' }),
|
||||
Option({ opt: options.bar.workspaces.spacing, title: 'Spacing', subtitle: 'Spacing between workspace icons', type: 'float' }),
|
||||
Option({ opt: options.bar.workspaces.workspaces, title: 'Total Workspaces', type: 'number' }),
|
||||
Option({ opt: options.bar.workspaces.monitorSpecific, title: 'Monitor Specific', subtitle: 'Only workspaces applicable to the monitor will be displayed', type: 'boolean' }),
|
||||
|
||||
15
widget/settings/side_effects/index.ts
Normal file
15
widget/settings/side_effects/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import options from "options";
|
||||
|
||||
const { show_numbered, show_icons } = options.bar.workspaces;
|
||||
|
||||
show_numbered.connect("changed", ({ value }) => {
|
||||
if (value === true) {
|
||||
show_icons.value = false;
|
||||
}
|
||||
})
|
||||
|
||||
show_icons.connect("changed", ({ value }) => {
|
||||
if (value === true) {
|
||||
show_numbered.value = false;
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user