make text in sdebar entry selectable w/ mouse

This commit is contained in:
end-4
2024-02-06 07:53:58 +07:00
parent 0186fc016c
commit 3445ffb979
2 changed files with 7 additions and 3 deletions
@@ -4,7 +4,7 @@ import Widget from 'resource:///com/github/Aylur/ags/widget.js';
import * as Utils from 'resource:///com/github/Aylur/ags/utils.js'; import * as Utils from 'resource:///com/github/Aylur/ags/utils.js';
const { Box, EventBox, Button, Revealer } = Widget; const { Box, EventBox, Button, Revealer } = Widget;
const { execAsync, exec } = Utils; const { execAsync } = Utils;
import { MaterialIcon } from '../../lib/materialicon.js'; import { MaterialIcon } from '../../lib/materialicon.js';
import { separatorLine } from '../../lib/separator.js'; import { separatorLine } from '../../lib/separator.js';
import { defaultOskLayout, oskLayouts } from '../../data/keyboardlayouts.js'; import { defaultOskLayout, oskLayouts } from '../../data/keyboardlayouts.js';
@@ -10,6 +10,7 @@ import {
CalculationResultButton, CustomCommandButton, DirectoryButton, CalculationResultButton, CustomCommandButton, DirectoryButton,
DesktopEntryButton, ExecuteCommandButton, SearchButton DesktopEntryButton, ExecuteCommandButton, SearchButton
} from './searchbuttons.js'; } from './searchbuttons.js';
import { enableClickthrough } from '../../lib/roundedcorner.js';
// Add math funcs // Add math funcs
const { abs, sin, cos, tan, cot, asin, acos, atan, acot } = Math; const { abs, sin, cos, tan, cot, asin, acos, atan, acot } = Math;
@@ -76,7 +77,7 @@ export const SearchAndWindows = () => {
child: Widget.Label({ child: Widget.Label({
className: 'overview-search-prompt txt-small txt', className: 'overview-search-prompt txt-small txt',
label: 'Type to search' label: 'Type to search'
}) }),
}); });
const entryIconRevealer = Widget.Revealer({ const entryIconRevealer = Widget.Revealer({
@@ -217,7 +218,10 @@ export const SearchAndWindows = () => {
entry, entry,
Widget.Box({ Widget.Box({
className: 'overview-search-icon-box', className: 'overview-search-icon-box',
setup: box => box.pack_start(entryPromptRevealer, true, true, 0), setup: (box) => {
box.pack_start(entryPromptRevealer, true, true, 0)
// enableClickthrough(box);
},
}), }),
entryIcon, entryIcon,
] ]