feat: raise maximum volume (#384)
* feat: raise maximum volume * feat: raise maximum volume * feat: raise maximum volume * feat: add volume settings menu * feat: move binding * Update modules/menus/audio/active/SelectedPlayback.ts Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com> --------- Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import { OSDSettings } from './osd/index';
|
||||
import { CustomModuleSettings } from 'customModules/config';
|
||||
import { PowerMenuSettings } from './menus/power';
|
||||
import { GBox } from 'lib/types/widget';
|
||||
import { VolumeMenuSettings } from './menus/volume';
|
||||
|
||||
type Page =
|
||||
| 'General'
|
||||
@@ -14,6 +15,7 @@ type Page =
|
||||
| 'Clock Menu'
|
||||
| 'Dashboard Menu'
|
||||
| 'Power Menu'
|
||||
| 'Volume'
|
||||
| 'Notifications'
|
||||
| 'OSD'
|
||||
| 'Custom Modules';
|
||||
@@ -26,6 +28,7 @@ const pagerMap: Page[] = [
|
||||
'Notifications',
|
||||
'OSD',
|
||||
'Power Menu',
|
||||
'Volume',
|
||||
'Clock Menu',
|
||||
'Dashboard Menu',
|
||||
'Custom Modules',
|
||||
@@ -57,6 +60,7 @@ export const SettingsMenu = (): GBox => {
|
||||
Bar: BarSettings(),
|
||||
Notifications: NotificationSettings(),
|
||||
OSD: OSDSettings(),
|
||||
Volume: VolumeMenuSettings(),
|
||||
'Clock Menu': ClockMenuSettings(),
|
||||
'Dashboard Menu': DashboardMenuSettings(),
|
||||
'Custom Modules': CustomModuleSettings(),
|
||||
|
||||
24
widget/settings/pages/config/menus/volume.ts
Normal file
24
widget/settings/pages/config/menus/volume.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Option } from 'widget/settings/shared/Option';
|
||||
import { Header } from 'widget/settings/shared/Header';
|
||||
|
||||
import options from 'options';
|
||||
import Scrollable from 'types/widgets/scrollable';
|
||||
import { Attribute, Child } from 'lib/types/widget';
|
||||
|
||||
export const VolumeMenuSettings = (): Scrollable<Child, Attribute> => {
|
||||
return Widget.Scrollable({
|
||||
vscroll: 'automatic',
|
||||
child: Widget.Box({
|
||||
class_name: 'bar-theme-page paged-container',
|
||||
vertical: true,
|
||||
children: [
|
||||
Header('Volume'),
|
||||
Option({
|
||||
opt: options.menus.volume.raiseMaximumVolume,
|
||||
title: 'Allow Raising Volume Above 100%',
|
||||
type: 'boolean',
|
||||
}),
|
||||
],
|
||||
}),
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user