Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better theme #300

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion apps/postybirb-ui/src/app/app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { MantineProvider, createTheme } from '@mantine/core';
/* eslint-disable lingui/no-unlocalized-strings */
import { MantineProvider, createTheme, rem } from '@mantine/core';
import '@mantine/core/styles.css';
import '@mantine/dates/styles.css';
import '@mantine/dropzone/styles.css';
Expand All @@ -12,6 +13,27 @@ import { PostyBirbLayout } from './postybirb-layout/postybirb-layout';

const mantineTheme = createTheme({
/** Put your mantine theme override here */
colors: {
dark: [
'#C9C9C9',
'#b8b8b8',
'#828282',
'#696969',
'#424242',
'#3b3b3b',
'#292929',
'#1A1A1A',
'#131313',
'#000000',
],
},
primaryShade: 9,
shadows: {
xs: `0 ${rem(3)} ${rem(4)} rgba(0, 0, 0, 0.2), 0 ${rem(6)} ${rem(
10
)} rgba(0, 0, 0, 0.1)`,
},
primaryColor: 'green',
});

const queryClient = new QueryClient({
Expand Down
24 changes: 12 additions & 12 deletions lang/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,11 @@ msgstr "Игнорировать теги по умолчанию"

#: apps/postybirb-ui/src/components/form/fields/description-field.tsx:42
msgid "Insert tags at end"
msgstr "Вставить теги в конце"
msgstr "Добавить теги в конце"

#: apps/postybirb-ui/src/components/form/fields/description-field.tsx:36
msgid "Insert title at start"
msgstr "Вставить заголовок в начале"
msgstr "Добавить название в начало описания"

#: apps/postybirb-ui/src/components/submissions/submission-scheduler/submission-scheduler.tsx:70
msgid "Invalid CRON string"
Expand Down Expand Up @@ -436,12 +436,12 @@ msgstr "Основные значения"

#: apps/postybirb-ui/src/external-translations.ts:8
msgid "Rating"
msgstr ""
msgstr "Рейтинг"

#: apps/postybirb-ui/src/components/submissions/submission-scheduler/submission-scheduler.tsx:25
msgctxt "internalSchedule.recurring"
msgid "Recurring"
msgstr ""
msgstr "Повторять"

#: apps/postybirb-ui/src/components/submission-templates/template-picker-modal/template-picker-modal.tsx:193
msgctxt "import.override-description"
Expand Down Expand Up @@ -480,7 +480,7 @@ msgstr ""
#: apps/postybirb-ui/src/components/form/website-option-form/website-option-group-section.tsx:56
#: apps/postybirb-ui/src/components/form/website-option-form/website-option-group-section.tsx:124
msgid "Save defaults"
msgstr ""
msgstr "Сохранить по умолчанию"

#: apps/postybirb-ui/src/components/submissions/directory-watchers-view/directory-watchers-view.tsx:120
msgid "Save folder upload changes"
Expand All @@ -505,15 +505,15 @@ msgstr ""
#: apps/postybirb-ui/src/app/postybirb-layout/postybirb-layout.tsx:148
#: apps/postybirb-ui/src/components/submissions/submission-view/submission-view-card/submission-view-actions/submission-view-actions.tsx:56
msgid "Search"
msgstr ""
msgstr "Поиск"

#: apps/postybirb-ui/src/components/submissions/directory-watchers-view/directory-watchers-view.tsx:69
msgid "Select folder"
msgstr ""

#: apps/postybirb-ui/src/app/postybirb-layout/postybirb-layout.tsx:80
msgid "Send Messages"
msgstr ""
msgstr "Опубликовать сообщения"

#: apps/postybirb-ui/src/app/postybirb-layout/drawers/settings-drawer.tsx:155
#: apps/postybirb-ui/src/app/postybirb-layout/postybirb-layout.tsx:105
Expand Down Expand Up @@ -644,27 +644,27 @@ msgstr "Набросок (Маленькая картинка)"

#: apps/postybirb-ui/src/external-translations.ts:7
msgid "Title"
msgstr ""
msgstr "Название"

#: apps/postybirb-ui/src/components/translations/translation.tsx:104
msgid "Title is too long"
msgstr ""
msgstr "Название слишком длинное"

#: apps/postybirb-ui/src/components/translations/translation.tsx:102
msgid "Title is too long and will be truncated"
msgstr ""
msgstr "Название слишком длинное и будет обрезано"

#: apps/postybirb-ui/src/components/translations/translation.tsx:118
msgid "Title is too short"
msgstr ""
msgstr "Название слишком короткое"

#: apps/postybirb-ui/src/components/translations/translation.tsx:136
msgid "Translation {id} not found"
msgstr "Перевод {id} не найден"

#: apps/postybirb-ui/src/components/form/website-option-form/website-option-form.tsx:230
msgid "Unable to display form"
msgstr ""
msgstr "Не удалось показать форму"

#: apps/postybirb-ui/src/app/postybirb-layout/drawers/account-drawer/website-card.tsx:116
#: apps/postybirb-ui/src/components/submission-templates/template-picker-modal/template-picker-modal.tsx:104
Expand Down