Fix menu top margin even box
This commit is contained in:
@@ -33,11 +33,10 @@ const moveBoxToCursor = (self, minWidth, minHeight, fixed) => {
|
||||
marginRight = 13;
|
||||
marginLeft = monWidth - minWidth - 13;
|
||||
}
|
||||
const marginTop = 40;
|
||||
const marginTop = 45;
|
||||
const marginBottom = monHeight + minHeight - marginTop;
|
||||
self.set_margin_left(marginLeft);
|
||||
self.set_margin_right(marginRight);
|
||||
self.set_margin_top(marginTop);
|
||||
self.set_margin_bottom(marginBottom);
|
||||
});
|
||||
};
|
||||
@@ -63,9 +62,25 @@ export default ({
|
||||
layer: "top",
|
||||
anchor: ["top", "left"],
|
||||
child: Widget.EventBox({
|
||||
class_name: "parent-event",
|
||||
on_primary_click: () => App.closeWindow(name),
|
||||
on_secondary_click: () => App.closeWindow(name),
|
||||
child: Widget.EventBox({
|
||||
child: Widget.Box({
|
||||
vertical: true,
|
||||
children: [
|
||||
Widget.EventBox({
|
||||
class_name: "event-top-padding",
|
||||
hexpand: true,
|
||||
vexpand: false,
|
||||
can_focus: false,
|
||||
child: Widget.Box(),
|
||||
setup: (w) => {
|
||||
w.on("button-press-event", () => App.toggleWindow(name));
|
||||
w.set_margin_top(1);
|
||||
},
|
||||
}),
|
||||
Widget.EventBox({
|
||||
class_name: "menu-event-box",
|
||||
on_primary_click: () => {
|
||||
return true;
|
||||
},
|
||||
@@ -94,6 +109,8 @@ export default ({
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
],
|
||||
}),
|
||||
}),
|
||||
...props,
|
||||
});
|
||||
|
||||
@@ -60,7 +60,7 @@ const Layout = (name, child, transition) => ({
|
||||
},
|
||||
Padding(name, {
|
||||
vexpand: false,
|
||||
className: "top-right-event-box_top",
|
||||
className: "event-top-padding",
|
||||
}),
|
||||
PopupRevealer(name, child, transition),
|
||||
Padding(name),
|
||||
@@ -77,7 +77,7 @@ const Layout = (name, child, transition) => ({
|
||||
},
|
||||
Padding(name, {
|
||||
vexpand: false,
|
||||
className: "top-right-event-box_top",
|
||||
className: "event-top-padding",
|
||||
}),
|
||||
PopupRevealer(name, child, transition),
|
||||
Padding(name),
|
||||
|
||||
@@ -65,6 +65,7 @@ const renderWapStaging = (self, network, staging, connecting) => {
|
||||
Utils.notify({
|
||||
summary: "Network",
|
||||
body: err,
|
||||
timeout: 5000,
|
||||
});
|
||||
})
|
||||
.then(() => {
|
||||
|
||||
@@ -77,6 +77,10 @@ const renderWAPs = (self, network, staging, connecting) => {
|
||||
children: [
|
||||
Widget.Button({
|
||||
on_primary_click: () => {
|
||||
if (ap.bssid === connecting.value || ap.active) {
|
||||
return;
|
||||
}
|
||||
|
||||
connecting.value = ap.bssid;
|
||||
Utils.execAsync(`nmcli device wifi connect ${ap.bssid}`)
|
||||
.then(() => {
|
||||
@@ -94,6 +98,7 @@ const renderWAPs = (self, network, staging, connecting) => {
|
||||
Utils.notify({
|
||||
summary: "Network",
|
||||
body: err,
|
||||
timeout: 5000,
|
||||
});
|
||||
}
|
||||
connecting.value = "";
|
||||
|
||||
@@ -242,11 +242,12 @@ tooltip label {
|
||||
min-height: 10em;
|
||||
}
|
||||
|
||||
.top-right-event-box_top *{
|
||||
min-height: 0em;
|
||||
margin-top: 2.5em;
|
||||
}
|
||||
.menu-label {
|
||||
margin: 0.5em 1em;
|
||||
color: $sky;
|
||||
}
|
||||
|
||||
.event-top-padding * {
|
||||
min-height: 0em;
|
||||
margin-top: 2.8em;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
.close-network-password-input-button {
|
||||
padding: 0em 0.5em;
|
||||
&:hover image {
|
||||
color: $maroon;
|
||||
color: $mauve;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
font-size: 1.3em;
|
||||
}
|
||||
&:hover {
|
||||
color: $maroon;
|
||||
color: $mauve;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
14
style.css
14
style.css
@@ -637,16 +637,16 @@ tooltip label {
|
||||
min-height: 10em;
|
||||
}
|
||||
|
||||
.top-right-event-box_top * {
|
||||
min-height: 0em;
|
||||
margin-top: 2.5em;
|
||||
}
|
||||
|
||||
.menu-label {
|
||||
margin: 0.5em 1em;
|
||||
color: #89dceb;
|
||||
}
|
||||
|
||||
.event-top-padding * {
|
||||
min-height: 0em;
|
||||
margin-top: 2.8em;
|
||||
}
|
||||
|
||||
window#powermenu,
|
||||
window#verification {
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
@@ -885,7 +885,7 @@ window#powermenu .powermenu.box {
|
||||
padding: 0em 0.5em;
|
||||
}
|
||||
.menu-items-container.network .close-network-password-input-button:hover image {
|
||||
color: #eba0ac;
|
||||
color: #cba6f7;
|
||||
}
|
||||
.menu-items-container.network .menu-icon-button.network.disconnect {
|
||||
margin-bottom: 0.4em;
|
||||
@@ -894,7 +894,7 @@ window#powermenu .powermenu.box {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
.menu-items-container.network .menu-icon-button.network.disconnect:hover {
|
||||
color: #eba0ac;
|
||||
color: #cba6f7;
|
||||
}
|
||||
|
||||
.menu-items-container.bluetooth {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user