mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
feat: update files
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
// Import
|
||||
import { App, Utils } from './imports.js';
|
||||
import { App, Utils } from "./imports.js";
|
||||
// Windows
|
||||
import Bar from './windows/bar.js';
|
||||
import Cheatsheet from './windows/cheatsheet.js';
|
||||
import { CornerTopleft, CornerTopright, CornerBottomleft, CornerBottomright } from './windows/corners.js';
|
||||
import Indicator from './windows/osd.js';
|
||||
import Osk from './windows/osk.js';
|
||||
import Overview from './windows/overview.js';
|
||||
import Session from './windows/session.js';
|
||||
import SideLeft from './windows/sideleft.js';
|
||||
import SideRight from './windows/sideright.js';
|
||||
import Bar from "./windows/bar.js";
|
||||
import Cheatsheet from "./windows/cheatsheet.js";
|
||||
import {
|
||||
CornerTopleft,
|
||||
CornerTopright,
|
||||
CornerBottomleft,
|
||||
CornerBottomright,
|
||||
} from "./windows/corners.js";
|
||||
import Indicator from "./windows/osd.js";
|
||||
import Osk from "./windows/osk.js";
|
||||
import Overview from "./windows/overview.js";
|
||||
import Session from "./windows/session.js";
|
||||
import SideLeft from "./windows/sideleft.js";
|
||||
import SideRight from "./windows/sideright.js";
|
||||
|
||||
const CLOSE_ANIM_TIME = 150;
|
||||
|
||||
@@ -22,32 +27,32 @@ App.applyCss(`${App.configDir}/style.css`);
|
||||
|
||||
// Config object
|
||||
export default {
|
||||
style: `${App.configDir}/style.css`,
|
||||
stackTraceOnError: true,
|
||||
closeWindowDelay: {
|
||||
// For animations
|
||||
'sideright': CLOSE_ANIM_TIME,
|
||||
'sideleft': CLOSE_ANIM_TIME,
|
||||
'osk': CLOSE_ANIM_TIME,
|
||||
// No anims, but allow menu service update
|
||||
'session': 1,
|
||||
'overview': 1,
|
||||
'cheatsheet': 1,
|
||||
},
|
||||
windows: [
|
||||
Bar(),
|
||||
...Array.from({length: 3}, (_, i) => [
|
||||
CornerTopleft(i),
|
||||
CornerTopright(i),
|
||||
CornerBottomleft(i),
|
||||
CornerBottomright(i),
|
||||
]),
|
||||
Overview(),
|
||||
Indicator(),
|
||||
Cheatsheet(),
|
||||
SideRight(),
|
||||
SideLeft(),
|
||||
Osk(), // On-screen keyboard
|
||||
Session(),
|
||||
],
|
||||
style: `${App.configDir}/style.css`,
|
||||
stackTraceOnError: true,
|
||||
closeWindowDelay: {
|
||||
// For animations
|
||||
sideright: CLOSE_ANIM_TIME,
|
||||
sideleft: CLOSE_ANIM_TIME,
|
||||
osk: CLOSE_ANIM_TIME,
|
||||
// No anims, but allow menu service update
|
||||
session: 1,
|
||||
overview: 1,
|
||||
cheatsheet: 1,
|
||||
},
|
||||
windows: [
|
||||
//Bar(),
|
||||
...Array.from({ length: 3 }, (_, i) => [
|
||||
CornerTopleft(i),
|
||||
CornerTopright(i),
|
||||
CornerBottomleft(i),
|
||||
CornerBottomright(i),
|
||||
]),
|
||||
//Overview(),
|
||||
Indicator(),
|
||||
//Cheatsheet(),
|
||||
SideRight(),
|
||||
SideLeft(),
|
||||
//Osk(), // On-screen keyboard
|
||||
//Session(),
|
||||
],
|
||||
};
|
||||
|
||||
@@ -1,40 +1,43 @@
|
||||
import { Widget } from '../imports.js';
|
||||
import { Widget } from "../imports.js";
|
||||
import { RoundedCorner } from "../modules/lib/roundedcorner.js";
|
||||
|
||||
export const CornerTopleft = monitor => Widget.Window({
|
||||
name: 'cornertl',
|
||||
layer: 'top',
|
||||
export const CornerTopleft = (monitor) =>
|
||||
Widget.Window({
|
||||
name: "cornertl",
|
||||
layer: "top",
|
||||
monitor,
|
||||
anchor: ['top', 'left'],
|
||||
anchor: ["top", "left"],
|
||||
exclusive: false,
|
||||
visible: true,
|
||||
child: RoundedCorner('topleft', { className: monitor === 1 ? 'corner' : 'corner-black', }),
|
||||
});
|
||||
export const CornerTopright = monitor => Widget.Window({
|
||||
name: 'cornertr',
|
||||
layer: 'top',
|
||||
child: RoundedCorner("topleft", { className: "corner-black" }),
|
||||
});
|
||||
export const CornerTopright = (monitor) =>
|
||||
Widget.Window({
|
||||
name: "cornertr",
|
||||
layer: "top",
|
||||
monitor,
|
||||
anchor: ['top', 'right'],
|
||||
anchor: ["top", "right"],
|
||||
exclusive: false,
|
||||
visible: true,
|
||||
child: RoundedCorner('topright', { className: monitor === 1 ? 'corner' : 'corner-black', }),
|
||||
});
|
||||
export const CornerBottomleft = monitor => Widget.Window({
|
||||
name: 'cornerbl',
|
||||
layer: 'top',
|
||||
child: RoundedCorner("topright", { className: "corner-black" }),
|
||||
});
|
||||
export const CornerBottomleft = (monitor) =>
|
||||
Widget.Window({
|
||||
name: "cornerbl",
|
||||
layer: "top",
|
||||
monitor,
|
||||
anchor: ['bottom', 'left'],
|
||||
anchor: ["bottom", "left"],
|
||||
exclusive: false,
|
||||
visible: true,
|
||||
child: RoundedCorner('bottomleft', { className: 'corner-black', }),
|
||||
});
|
||||
export const CornerBottomright = monitor => Widget.Window({
|
||||
name: 'cornerbr',
|
||||
layer: 'top',
|
||||
child: RoundedCorner("bottomleft", { className: "corner-black" }),
|
||||
});
|
||||
export const CornerBottomright = (monitor) =>
|
||||
Widget.Window({
|
||||
name: "cornerbr",
|
||||
layer: "top",
|
||||
monitor,
|
||||
anchor: ['bottom', 'right'],
|
||||
anchor: ["bottom", "right"],
|
||||
exclusive: false,
|
||||
visible: true,
|
||||
child: RoundedCorner('bottomright', { className: 'corner-black', }),
|
||||
});
|
||||
|
||||
child: RoundedCorner("bottomright", { className: "corner-black" }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user