mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-15 07:35:20 -04:00
feat(Notepad): Complete refactor - New popout mode & settings
- Add a full popout Notepad experience w/new layout settings - New ability to choose the left or right side of the screen - Add more safegaurds to preserve user data throughout - New banner to show file reload/conflict handling - New extensionless file support - Polish settings with gap controls, compact buttons, and shortcuts help
This commit is contained in:
@@ -1093,11 +1093,17 @@ Item {
|
||||
slideoutWidth: 480
|
||||
expandable: true
|
||||
expandedWidthValue: 960
|
||||
edgeGap: SettingsData.notepadEffectiveEdgeGap
|
||||
slideEdge: SettingsData.notepadSlideoutSide
|
||||
|
||||
content: Component {
|
||||
Notepad {
|
||||
slideout: notepadSlideout
|
||||
onHideRequested: notepadSlideout.hide()
|
||||
onPopoutRequested: {
|
||||
notepadSlideout.hide();
|
||||
PopoutService.openNotepadPopout();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1114,6 +1120,24 @@ Item {
|
||||
Component.onCompleted: PopoutService.notepadSlideouts = instances
|
||||
}
|
||||
|
||||
LazyLoader {
|
||||
id: notepadPopoutLoader
|
||||
active: false
|
||||
|
||||
Component.onCompleted: {
|
||||
PopoutService.notepadPopoutLoader = notepadPopoutLoader;
|
||||
}
|
||||
|
||||
onActiveChanged: {
|
||||
if (active && item) {
|
||||
PopoutService.notepadPopout = item;
|
||||
PopoutService._onNotepadPopoutLoaded();
|
||||
}
|
||||
}
|
||||
|
||||
NotepadPopoutWindow {}
|
||||
}
|
||||
|
||||
LazyLoader {
|
||||
id: powerMenuModalLoader
|
||||
|
||||
|
||||
Reference in New Issue
Block a user