forked from Shinonome/dots-hyprland
sidebar: add github link to make tools page less empty
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import Widget from 'resource:///com/github/Aylur/ags/widget.js';
|
||||
const { Box, Scrollable } = Widget;
|
||||
const { Box, Label, Scrollable } = Widget;
|
||||
import QuickScripts from './tools/quickscripts.js';
|
||||
import ColorPicker from './tools/colorpicker.js';
|
||||
import Name from './tools/name.js';
|
||||
|
||||
export default Scrollable({
|
||||
hscroll: "never",
|
||||
@@ -12,6 +13,8 @@ export default Scrollable({
|
||||
children: [
|
||||
QuickScripts(),
|
||||
ColorPicker(),
|
||||
Box({ vexpand: true }),
|
||||
Name(),
|
||||
]
|
||||
})
|
||||
});
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
const { Gtk } = imports.gi;
|
||||
import App from 'resource:///com/github/Aylur/ags/app.js';
|
||||
import Widget from 'resource:///com/github/Aylur/ags/widget.js';
|
||||
import * as Utils from 'resource:///com/github/Aylur/ags/utils.js';
|
||||
import { setupCursorHover } from '../../.widgetutils/cursorhover.js';
|
||||
const { execAsync, exec } = Utils;
|
||||
const { Box, Button, CenterBox, EventBox, Icon, Label, Scrollable } = Widget;
|
||||
|
||||
export default () => Box({
|
||||
className: 'txt sidebar-module techfont',
|
||||
children: [
|
||||
Label({
|
||||
label: 'illogical-impulse'
|
||||
}),
|
||||
Box({ hexpand: true }),
|
||||
Button({
|
||||
className: 'sidebar-module-btn-arrow',
|
||||
onClicked: () => execAsync(['xdg-open', 'https://github.com/end-4/dots-hyprland']).catch(print),
|
||||
child: Icon({
|
||||
className: 'txt txt-norm',
|
||||
icon: 'github-symbolic',
|
||||
}),
|
||||
setup: setupCursorHover,
|
||||
})
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user