Compare commits
2 commits
a080776723
...
4ee939f04b
Author | SHA1 | Date | |
---|---|---|---|
4ee939f04b | |||
c1d70471b3 |
7 changed files with 23 additions and 6 deletions
|
@ -167,5 +167,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.umi--archaic .markup__link {
|
.umi--archaic .markup__link {
|
||||||
color: #1e90ff
|
color: #1e90ff;
|
||||||
|
}
|
||||||
|
.umi--archaic .markup__link:visited {
|
||||||
|
color: #6B4F80;
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,5 +167,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.umi--blue .markup__link {
|
.umi--blue .markup__link {
|
||||||
color: #1e90ff
|
color: #1e90ff;
|
||||||
|
}
|
||||||
|
.umi--blue .markup__link:visited {
|
||||||
|
color: #6B4F80;
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,5 +167,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.umi--dark .markup__link {
|
.umi--dark .markup__link {
|
||||||
color: #1e90ff
|
color: #1e90ff;
|
||||||
|
}
|
||||||
|
.umi--dark .markup__link:visited {
|
||||||
|
color: #6B4F80;
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,5 +167,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.umi--light .markup__link {
|
.umi--light .markup__link {
|
||||||
color: #1e90ff
|
color: #1e90ff;
|
||||||
|
}
|
||||||
|
.umi--light .markup__link:visited {
|
||||||
|
color: #6B4F80;
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,5 +167,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.umi--purple .markup__link {
|
.umi--purple .markup__link {
|
||||||
color: #1e90ff
|
color: #1e90ff;
|
||||||
|
}
|
||||||
|
.umi--purple .markup__link:visited {
|
||||||
|
color: #6B4F80;
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,6 +135,7 @@ window.Umi = { UI: {} };
|
||||||
settings.define('marqueeAllNames').default(false).create();
|
settings.define('marqueeAllNames').default(false).create();
|
||||||
settings.define('tmpDisableOldThemeSys').default(false).critical().create();
|
settings.define('tmpDisableOldThemeSys').default(false).critical().create();
|
||||||
settings.define('dbgAnimDurationMulti').default(1).min(0).max(10).create();
|
settings.define('dbgAnimDurationMulti').default(1).min(0).max(10).create();
|
||||||
|
settings.define('newLineOnEnter').default(false).create();
|
||||||
|
|
||||||
const noNotifSupport = !('Notification' in window);
|
const noNotifSupport = !('Notification' in window);
|
||||||
settings.define('enableNotifications').default(false).immutable(noNotifSupport).critical().create();
|
settings.define('enableNotifications').default(false).immutable(noNotifSupport).critical().create();
|
||||||
|
@ -432,6 +433,7 @@ window.Umi = { UI: {} };
|
||||||
category.setting('eepromAutoInsert').title('Auto-insert uploads').done();
|
category.setting('eepromAutoInsert').title('Auto-insert uploads').done();
|
||||||
category.setting('autoEmbedV1').title('Auto-embed media').done();
|
category.setting('autoEmbedV1').title('Auto-embed media').done();
|
||||||
category.setting('autoEmbedPlay').title('Auto-play embedded media').done();
|
category.setting('autoEmbedPlay').title('Auto-play embedded media').done();
|
||||||
|
category.setting('newLineOnEnter').title('Swap Enter and Shift+Enter behaviour').done();
|
||||||
});
|
});
|
||||||
sbSettings.category(category => {
|
sbSettings.category(category => {
|
||||||
category.header('Notifications');
|
category.header('Notifications');
|
||||||
|
|
|
@ -92,7 +92,7 @@ Umi.UI.Hooks = (function() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((ev.key === 'Enter' || ev.key === 'NumpadEnter') && !ev.shiftKey) {
|
if((ev.key === 'Enter' || ev.key === 'NumpadEnter') && ev.shiftKey === mami.settings.get('newLineOnEnter')) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
$i('umi-msg-form').requestSubmit();
|
$i('umi-msg-form').requestSubmit();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue