forked from Shinonome/dots-hyprland
sidebar: bluetooth: use symbolic icons
This commit is contained in:
@@ -12,7 +12,7 @@ import { ConfigToggle } from '../../.commonwidgets/configwidgets.js';
|
|||||||
|
|
||||||
// can't connect: sync_problem
|
// can't connect: sync_problem
|
||||||
|
|
||||||
const USE_SYMBOLIC_ICONS = false;
|
const USE_SYMBOLIC_ICONS = true;
|
||||||
|
|
||||||
const BluetoothDevice = (device) => {
|
const BluetoothDevice = (device) => {
|
||||||
// console.log(device);
|
// console.log(device);
|
||||||
@@ -54,6 +54,7 @@ const BluetoothDevice = (device) => {
|
|||||||
const deviceConnectButton = ConfigToggle({
|
const deviceConnectButton = ConfigToggle({
|
||||||
vpack: 'center',
|
vpack: 'center',
|
||||||
expandWidget: false,
|
expandWidget: false,
|
||||||
|
desc: 'Toggle connection',
|
||||||
initValue: device.connected,
|
initValue: device.connected,
|
||||||
onChange: (self, newValue) => {
|
onChange: (self, newValue) => {
|
||||||
device.setConnection(newValue);
|
device.setConnection(newValue);
|
||||||
@@ -66,6 +67,7 @@ const BluetoothDevice = (device) => {
|
|||||||
vpack: 'center',
|
vpack: 'center',
|
||||||
className: 'sidebar-bluetooth-device-remove',
|
className: 'sidebar-bluetooth-device-remove',
|
||||||
child: MaterialIcon('delete', 'norm'),
|
child: MaterialIcon('delete', 'norm'),
|
||||||
|
tooltipText: 'Remove device',
|
||||||
setup: setupCursorHover,
|
setup: setupCursorHover,
|
||||||
onClicked: () => execAsync(['bluetoothctl', 'remove', device.address]).catch(print),
|
onClicked: () => execAsync(['bluetoothctl', 'remove', device.address]).catch(print),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -891,7 +891,7 @@ $waifu_image_overlay_transparency: 0.7;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-bluetooth-appicon {
|
.sidebar-bluetooth-appicon {
|
||||||
font-size: 3.273rem;
|
font-size: 2.273rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-bluetooth-device-remove {
|
.sidebar-bluetooth-device-remove {
|
||||||
|
|||||||
Reference in New Issue
Block a user