mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-07 05:58:28 -04:00
notepad: add inline tab renaming and bump tab size
This commit is contained in:
@@ -120,12 +120,18 @@ Singleton {
|
||||
|
||||
function setMonitorScrollPosition(screenName, scrollX, scrollY) {
|
||||
var newPositions = Object.assign({}, monitorScrollPositions);
|
||||
newPositions[screenName] = { scrollX: scrollX, scrollY: scrollY };
|
||||
newPositions[screenName] = {
|
||||
scrollX: scrollX,
|
||||
scrollY: scrollY
|
||||
};
|
||||
monitorScrollPositions = newPositions;
|
||||
}
|
||||
|
||||
function getMonitorScrollPosition(screenName) {
|
||||
return monitorScrollPositions[screenName] || { scrollX: 50, scrollY: 50 };
|
||||
return monitorScrollPositions[screenName] || {
|
||||
scrollX: 50,
|
||||
scrollY: 50
|
||||
};
|
||||
}
|
||||
|
||||
function clearMonitorScrollPosition(screenName) {
|
||||
@@ -209,6 +215,8 @@ Singleton {
|
||||
property string locale: ""
|
||||
property string timeLocale: ""
|
||||
|
||||
property string notepadLastMode: ""
|
||||
|
||||
property string launcherLastMode: "all"
|
||||
property string launcherLastFileSearchType: "all"
|
||||
property string launcherLastQuery: ""
|
||||
@@ -1216,6 +1224,13 @@ Singleton {
|
||||
I18n.useLocale(locale, locale.startsWith("en") ? "" : I18n.folder + "/" + locale + ".json");
|
||||
}
|
||||
|
||||
function setNotepadLastMode(mode) {
|
||||
if (notepadLastMode === mode)
|
||||
return;
|
||||
notepadLastMode = mode;
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
function setLauncherLastMode(mode) {
|
||||
launcherLastMode = mode;
|
||||
saveSettings();
|
||||
|
||||
@@ -88,6 +88,8 @@ var SPEC = {
|
||||
locale: { def: "", onChange: "updateLocale" },
|
||||
timeLocale: { def: "" },
|
||||
|
||||
notepadLastMode: { def: "" },
|
||||
|
||||
launcherLastMode: { def: "all" },
|
||||
launcherLastFileSearchType: { def: "all" },
|
||||
launcherLastQuery: { def: "" },
|
||||
|
||||
Reference in New Issue
Block a user