mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
Update Notepad Rendering
This commit is contained in:
@@ -15,6 +15,7 @@ pragma ComponentBehavior: Bound
|
||||
Item {
|
||||
id: root
|
||||
|
||||
property real devicePixelRatio: 1
|
||||
property bool fileDialogOpen: false
|
||||
property string currentFileName: ""
|
||||
property url currentFileUrl
|
||||
@@ -150,6 +151,7 @@ Item {
|
||||
id: tabBar
|
||||
width: parent.width
|
||||
contentLoaded: textEditor.contentLoaded
|
||||
devicePixelRatio: root.devicePixelRatio
|
||||
|
||||
onTabSwitched: (tabIndex) => {
|
||||
switchToTab(tabIndex)
|
||||
@@ -168,6 +170,7 @@ Item {
|
||||
id: textEditor
|
||||
width: parent.width
|
||||
height: parent.height - tabBar.height - Theme.spacingM * 2
|
||||
devicePixelRatio: root.devicePixelRatio
|
||||
|
||||
onSaveRequested: {
|
||||
if (currentTab && !currentTab.isTemporary && currentTab.filePath) {
|
||||
@@ -214,6 +217,7 @@ Item {
|
||||
id: notepadSettings
|
||||
anchors.fill: parent
|
||||
isVisible: showSettingsMenu
|
||||
devicePixelRatio: root.devicePixelRatio
|
||||
onSettingsRequested: showSettingsMenu = !showSettingsMenu
|
||||
onFindRequested: {
|
||||
showSettingsMenu = false
|
||||
|
||||
@@ -9,6 +9,7 @@ pragma ComponentBehavior: Bound
|
||||
Item {
|
||||
id: root
|
||||
|
||||
property real devicePixelRatio: 1
|
||||
property bool isVisible: false
|
||||
property var cachedFontFamilies: []
|
||||
property var cachedMonoFamilies: []
|
||||
|
||||
@@ -9,6 +9,7 @@ pragma ComponentBehavior: Bound
|
||||
Column {
|
||||
id: root
|
||||
|
||||
property real devicePixelRatio: 1
|
||||
property var currentTab: NotepadStorageService.tabs.length > NotepadStorageService.currentTabIndex ? NotepadStorageService.tabs[NotepadStorageService.currentTabIndex] : null
|
||||
property bool contentLoaded: false
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ pragma ComponentBehavior: Bound
|
||||
Column {
|
||||
id: root
|
||||
|
||||
property real devicePixelRatio: 1
|
||||
property alias text: textArea.text
|
||||
property alias textArea: textArea
|
||||
property bool contentLoaded: false
|
||||
|
||||
Reference in New Issue
Block a user