forked from Shinonome/dots-hyprland
overview: remove unecessary stuff
This commit is contained in:
@@ -4,7 +4,7 @@ import PopupWindow from '../.widgethacks/popupwindow.js';
|
|||||||
|
|
||||||
export default (id = '') => PopupWindow({
|
export default (id = '') => PopupWindow({
|
||||||
name: `overview${id}`,
|
name: `overview${id}`,
|
||||||
exclusivity: 'ignore',
|
// exclusivity: 'ignore',
|
||||||
keymode: 'exclusive',
|
keymode: 'exclusive',
|
||||||
visible: false,
|
visible: false,
|
||||||
anchor: ['top'],
|
anchor: ['top'],
|
||||||
|
|||||||
@@ -51,12 +51,6 @@ const overviewContent = await OptionalOverview();
|
|||||||
export const SearchAndWindows = () => {
|
export const SearchAndWindows = () => {
|
||||||
var _appSearchResults = [];
|
var _appSearchResults = [];
|
||||||
|
|
||||||
const ClickToClose = ({ ...props }) => Widget.EventBox({
|
|
||||||
...props,
|
|
||||||
onPrimaryClick: () => App.closeWindow('overview'),
|
|
||||||
onSecondaryClick: () => App.closeWindow('overview'),
|
|
||||||
onMiddleClick: () => App.closeWindow('overview'),
|
|
||||||
});
|
|
||||||
const resultsBox = Widget.Box({
|
const resultsBox = Widget.Box({
|
||||||
className: 'overview-search-results',
|
className: 'overview-search-results',
|
||||||
vertical: true,
|
vertical: true,
|
||||||
@@ -210,11 +204,6 @@ export const SearchAndWindows = () => {
|
|||||||
return Widget.Box({
|
return Widget.Box({
|
||||||
vertical: true,
|
vertical: true,
|
||||||
children: [
|
children: [
|
||||||
ClickToClose({ // Top margin. Also works as a click-outside-to-close thing
|
|
||||||
child: Widget.Box({
|
|
||||||
className: 'bar-height',
|
|
||||||
})
|
|
||||||
}),
|
|
||||||
Widget.Box({
|
Widget.Box({
|
||||||
hpack: 'center',
|
hpack: 'center',
|
||||||
children: [
|
children: [
|
||||||
@@ -262,4 +251,4 @@ export const SearchAndWindows = () => {
|
|||||||
})
|
})
|
||||||
,
|
,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user