1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Fixed color of published note on Light theme

This commit is contained in:
Laurent Cozic 2022-04-11 17:46:33 +01:00
parent 74273cd570
commit 21706fa00a
4 changed files with 5 additions and 2 deletions

View File

@ -110,7 +110,7 @@ function NoteListItem(props: NoteListItemProps, ref: any) {
let listItemTitleStyle = Object.assign({}, props.style.listItemTitle); let listItemTitleStyle = Object.assign({}, props.style.listItemTitle);
listItemTitleStyle.paddingLeft = !item.is_todo ? hPadding : 4; listItemTitleStyle.paddingLeft = !item.is_todo ? hPadding : 4;
if (item.is_shared) listItemTitleStyle.color = theme.colorWarn2; if (item.is_shared) listItemTitleStyle.color = theme.colorWarn3;
if (item.is_todo && !!item.todo_completed) listItemTitleStyle = Object.assign(listItemTitleStyle, props.style.listItemTitleCompleted); if (item.is_todo && !!item.todo_completed) listItemTitleStyle = Object.assign(listItemTitleStyle, props.style.listItemTitleCompleted);
const displayTitle = Note.displayTitle(item); const displayTitle = Note.displayTitle(item);

View File

@ -29,6 +29,7 @@ const theme: Theme = {
selectedColor2: '#013F74', selectedColor2: '#013F74',
colorError2: '#ff6c6c', colorError2: '#ff6c6c',
colorWarn2: '#ffcb81', colorWarn2: '#ffcb81',
colorWarn3: '#ffcb81',
// Color scheme "3" is used for the config screens for example/ // Color scheme "3" is used for the config screens for example/
// It's dark text over gray background. // It's dark text over gray background.

View File

@ -26,6 +26,7 @@ const theme: Theme = {
selectedColor2: '#131313', selectedColor2: '#131313',
colorError2: '#ff6c6c', colorError2: '#ff6c6c',
colorWarn2: '#ffcb81', colorWarn2: '#ffcb81',
colorWarn3: '#ff7626',
// Color scheme "3" is used for the config screens for example/ // Color scheme "3" is used for the config screens for example/
// It's dark text over gray background. // It's dark text over gray background.

View File

@ -27,7 +27,8 @@ export interface Theme {
color2: string; color2: string;
selectedColor2: string; selectedColor2: string;
colorError2: string; colorError2: string;
colorWarn2: string; colorWarn2: string; // On a darker background (eg. sidebar)
colorWarn3: string; // On a lighter background (eg. note list)
// Color scheme "3" is used for the config screens for example/ // Color scheme "3" is used for the config screens for example/
// It's dark text over gray background. // It's dark text over gray background.