forked from Shinonome/dots-hyprland
horizontal bar: fix oversized pills when floating + fix weather hover hitbox
This commit is contained in:
@@ -129,7 +129,6 @@ Item { // Bar content region
|
|||||||
BarGroup {
|
BarGroup {
|
||||||
id: middleCenterGroup
|
id: middleCenterGroup
|
||||||
padding: workspacesWidget.widgetPadding
|
padding: workspacesWidget.widgetPadding
|
||||||
Layout.fillHeight: true
|
|
||||||
|
|
||||||
Workspaces {
|
Workspaces {
|
||||||
id: workspacesWidget
|
id: workspacesWidget
|
||||||
@@ -157,7 +156,6 @@ Item { // Bar content region
|
|||||||
implicitWidth: rightCenterGroupContent.implicitWidth
|
implicitWidth: rightCenterGroupContent.implicitWidth
|
||||||
implicitHeight: rightCenterGroupContent.implicitHeight
|
implicitHeight: rightCenterGroupContent.implicitHeight
|
||||||
Layout.preferredWidth: root.centerSideModuleWidth
|
Layout.preferredWidth: root.centerSideModuleWidth
|
||||||
Layout.fillHeight: true
|
|
||||||
|
|
||||||
onPressed: {
|
onPressed: {
|
||||||
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
||||||
@@ -328,8 +326,7 @@ Item { // Bar content region
|
|||||||
|
|
||||||
// Weather
|
// Weather
|
||||||
Loader {
|
Loader {
|
||||||
Layout.leftMargin: 8
|
Layout.leftMargin: 4
|
||||||
Layout.fillHeight: true
|
|
||||||
active: Config.options.bar.weather.enable
|
active: Config.options.bar.weather.enable
|
||||||
|
|
||||||
sourceComponent: BarGroup {
|
sourceComponent: BarGroup {
|
||||||
|
|||||||
@@ -9,10 +9,9 @@ import QtQuick.Layouts
|
|||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: root
|
id: root
|
||||||
property real margin: 10
|
|
||||||
property bool hovered: false
|
property bool hovered: false
|
||||||
implicitWidth: rowLayout.implicitWidth + margin * 2
|
implicitWidth: rowLayout.implicitWidth + 10 * 2
|
||||||
implicitHeight: rowLayout.implicitHeight
|
implicitHeight: Appearance.sizes.barHeight
|
||||||
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user