fix: fix spells (#362)
This commit is contained in:
@@ -159,7 +159,7 @@ export const renderResourceLabel = (lblType: ResourceLabelType, rmUsg: GenericRe
|
|||||||
B: (size: number): number => size,
|
B: (size: number): number => size,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get them datas in proper GiB, MiB, KiB, TiB, or bytes
|
// Get the data in proper GiB, MiB, KiB, TiB, or bytes
|
||||||
const totalSizeFormatted = autoFormatSize(total, round);
|
const totalSizeFormatted = autoFormatSize(total, round);
|
||||||
// get the postfix: one of [TiB, GiB, MiB, KiB, B]
|
// get the postfix: one of [TiB, GiB, MiB, KiB, B]
|
||||||
const postfix = getPostfix(total);
|
const postfix = getPostfix(total);
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export const openMenu = async (clicked: Button<Child, Attribute>, event: Gdk.Eve
|
|||||||
/*
|
/*
|
||||||
* NOTE: We have to make some adjustments so the menu pops up relatively
|
* NOTE: We have to make some adjustments so the menu pops up relatively
|
||||||
* to the center of the button clicked. We don't want the menu to spawn
|
* to the center of the button clicked. We don't want the menu to spawn
|
||||||
* offcenter dependending on which edge of the button you click on.
|
* offcenter depending on which edge of the button you click on.
|
||||||
* -------------
|
* -------------
|
||||||
* To fix this, we take the x coordinate of the click within the button's bounds.
|
* To fix this, we take the x coordinate of the click within the button's bounds.
|
||||||
* If you click the left edge of a 100 width button, then the x axis will be 0
|
* If you click the left edge of a 100 width button, then the x axis will be 0
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { globalEventBoxes } from 'globals/dropdown';
|
|||||||
const { location } = options.theme.bar;
|
const { location } = options.theme.bar;
|
||||||
|
|
||||||
// NOTE: We make the window visible for 2 seconds (on startup) so the child
|
// NOTE: We make the window visible for 2 seconds (on startup) so the child
|
||||||
// elements can allocat their proper dimensions.
|
// elements can allocate their proper dimensions.
|
||||||
// Otherwise the width that we rely on for menu positioning is set improperly
|
// Otherwise the width that we rely on for menu positioning is set improperly
|
||||||
// for the first time we open a menu of each type.
|
// for the first time we open a menu of each type.
|
||||||
const initRender = Variable(true);
|
const initRender = Variable(true);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "hyprpanel",
|
"name": "hyprpanel",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "A customizble panel built for Hyprland.",
|
"description": "A customizable panel built for Hyprland.",
|
||||||
"main": "config.js",
|
"main": "config.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
"lib": "lib"
|
"lib": "lib"
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ export const BarSettings = (): Scrollable<Gtk.Widget, Gtk.Widget> => {
|
|||||||
title: 'Monitor Specific',
|
title: 'Monitor Specific',
|
||||||
subtitle:
|
subtitle:
|
||||||
'Only workspaces applicable to the monitor will be displayed.\n' +
|
'Only workspaces applicable to the monitor will be displayed.\n' +
|
||||||
"Works in conjuction with 'Total Workspaces'.",
|
"Works in conjunction with 'Total Workspaces'.",
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
}),
|
}),
|
||||||
Option({
|
Option({
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export const MediaMenuTheme = (): Scrollable<Child, Attribute> => {
|
|||||||
}),
|
}),
|
||||||
Option({
|
Option({
|
||||||
opt: options.theme.bar.menus.menu.media.slider.backgroundhover,
|
opt: options.theme.bar.menus.menu.media.slider.backgroundhover,
|
||||||
title: 'Backround (Hover)',
|
title: 'Background (Hover)',
|
||||||
type: 'color',
|
type: 'color',
|
||||||
}),
|
}),
|
||||||
Option({ opt: options.theme.bar.menus.menu.media.slider.puck, title: 'Puck', type: 'color' }),
|
Option({ opt: options.theme.bar.menus.menu.media.slider.puck, title: 'Puck', type: 'color' }),
|
||||||
|
|||||||
Reference in New Issue
Block a user