sidebar: bluetooth: use symbolic icons

This commit is contained in:
end-4
2024-03-28 20:51:30 +07:00
parent 381c454b49
commit 37d54b160f
2 changed files with 4 additions and 2 deletions
@@ -12,7 +12,7 @@ import { ConfigToggle } from '../../.commonwidgets/configwidgets.js';
// can't connect: sync_problem
const USE_SYMBOLIC_ICONS = false;
const USE_SYMBOLIC_ICONS = true;
const BluetoothDevice = (device) => {
// console.log(device);
@@ -54,6 +54,7 @@ const BluetoothDevice = (device) => {
const deviceConnectButton = ConfigToggle({
vpack: 'center',
expandWidget: false,
desc: 'Toggle connection',
initValue: device.connected,
onChange: (self, newValue) => {
device.setConnection(newValue);
@@ -66,6 +67,7 @@ const BluetoothDevice = (device) => {
vpack: 'center',
className: 'sidebar-bluetooth-device-remove',
child: MaterialIcon('delete', 'norm'),
tooltipText: 'Remove device',
setup: setupCursorHover,
onClicked: () => execAsync(['bluetoothctl', 'remove', device.address]).catch(print),
});
+1 -1
View File
@@ -891,7 +891,7 @@ $waifu_image_overlay_transparency: 0.7;
}
.sidebar-bluetooth-appicon {
font-size: 3.273rem;
font-size: 2.273rem;
}
.sidebar-bluetooth-device-remove {