Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion panels/notification/center/NotifyCenter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ FocusScope {
anchors {
top: parent.top
left: parent.left
leftMargin: NotifyStyle.leftMargin
}
height: 40
width: NotifyStyle.contentItem.width
Expand Down Expand Up @@ -77,7 +78,6 @@ FocusScope {
top: header.bottom
right: parent.right
rightMargin: NotifyStyle.scrollBarPadding
topMargin: 10
bottom: parent.bottom
}

Expand Down
3 changes: 3 additions & 0 deletions panels/notification/center/NotifyView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import QtQuick.Controls
import QtQuick.Layouts
import org.deepin.dtk 1.0
import org.deepin.ds
import org.deepin.ds.notification
import org.deepin.ds.notificationcenter

Control {
Expand Down Expand Up @@ -61,6 +62,8 @@ Control {
keyNavigationEnabled: false
activeFocusOnTab: false
ScrollBar.vertical: ScrollBar { }
topMargin: 10
leftMargin: NotifyStyle.leftMargin
property int nextIndex: -1
property int pendingFocusIndex: -1 // Index to focus after expand operation
property bool panelShown: false
Expand Down
2 changes: 1 addition & 1 deletion panels/notification/center/package/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Window {
flags: Qt.Tool

property int contentPadding: 20
width: NotifyStyle.contentItem.width + contentPadding * 2
width: NotifyStyle.contentItem.width + NotifyStyle.leftMargin +contentPadding * 2
// height: 800
DLayerShellWindow.layer: DLayerShellWindow.LayerOverlay
DLayerShellWindow.anchors: DLayerShellWindow.AnchorRight | DLayerShellWindow.AnchorTop | DLayerShellWindow.AnchorBottom
Expand Down
1 change: 1 addition & 0 deletions panels/notification/plugin/NotifyStyle.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ QtObject {
property int width: 360
}
property int scrollBarPadding: 2
property int leftMargin: 20
}
Loading