diff --git a/Makefile b/Makefile index 6573ca38c..5420916ad 100644 --- a/Makefile +++ b/Makefile @@ -23,3 +23,4 @@ clean: rm -f deploy/*~ rm -f translations/*~ rm -rf __pycache__ + rm calendar.css blog.css epicyon.css follow.css login.css options.css search.css suspended.css diff --git a/img/banner_indymedia.png b/img/banner_indymedia.png new file mode 100644 index 000000000..5658b806c Binary files /dev/null and b/img/banner_indymedia.png differ diff --git a/img/icons/indymedia/add.png b/img/icons/indymedia/add.png new file mode 100644 index 000000000..67b9501c7 Binary files /dev/null and b/img/icons/indymedia/add.png differ diff --git a/img/icons/indymedia/bookmark.png b/img/icons/indymedia/bookmark.png new file mode 100644 index 000000000..095439bde Binary files /dev/null and b/img/icons/indymedia/bookmark.png differ diff --git a/img/icons/indymedia/bookmark_inactive.png b/img/icons/indymedia/bookmark_inactive.png new file mode 100644 index 000000000..94e1c3358 Binary files /dev/null and b/img/icons/indymedia/bookmark_inactive.png differ diff --git a/img/icons/indymedia/calendar.png b/img/icons/indymedia/calendar.png new file mode 100644 index 000000000..34e730088 Binary files /dev/null and b/img/icons/indymedia/calendar.png differ diff --git a/img/icons/indymedia/calendar_notify.png b/img/icons/indymedia/calendar_notify.png new file mode 100644 index 000000000..3e5790b61 Binary files /dev/null and b/img/icons/indymedia/calendar_notify.png differ diff --git a/img/icons/indymedia/delete.png b/img/icons/indymedia/delete.png new file mode 100644 index 000000000..8d7a5dfda Binary files /dev/null and b/img/icons/indymedia/delete.png differ diff --git a/img/icons/indymedia/dm.png b/img/icons/indymedia/dm.png new file mode 100644 index 000000000..8e40f56b4 Binary files /dev/null and b/img/icons/indymedia/dm.png differ diff --git a/img/icons/indymedia/download.png b/img/icons/indymedia/download.png new file mode 100644 index 000000000..c666bad26 Binary files /dev/null and b/img/icons/indymedia/download.png differ diff --git a/img/icons/indymedia/edit.png b/img/icons/indymedia/edit.png new file mode 100644 index 000000000..a3901fc97 Binary files /dev/null and b/img/icons/indymedia/edit.png differ diff --git a/img/icons/indymedia/like.png b/img/icons/indymedia/like.png new file mode 100644 index 000000000..c35bf6103 Binary files /dev/null and b/img/icons/indymedia/like.png differ diff --git a/img/icons/indymedia/like_inactive.png b/img/icons/indymedia/like_inactive.png new file mode 100644 index 000000000..efd55d912 Binary files /dev/null and b/img/icons/indymedia/like_inactive.png differ diff --git a/img/icons/indymedia/mute.png b/img/icons/indymedia/mute.png new file mode 100644 index 000000000..7590a224d Binary files /dev/null and b/img/icons/indymedia/mute.png differ diff --git a/img/icons/indymedia/new.png b/img/icons/indymedia/new.png new file mode 100644 index 000000000..80f2fb6ba Binary files /dev/null and b/img/icons/indymedia/new.png differ diff --git a/img/icons/indymedia/newpost.png b/img/icons/indymedia/newpost.png new file mode 100644 index 000000000..9a685e248 Binary files /dev/null and b/img/icons/indymedia/newpost.png differ diff --git a/img/icons/indymedia/pagedown.png b/img/icons/indymedia/pagedown.png new file mode 100644 index 000000000..059eee161 Binary files /dev/null and b/img/icons/indymedia/pagedown.png differ diff --git a/img/icons/indymedia/pageup.png b/img/icons/indymedia/pageup.png new file mode 100644 index 000000000..7a84d0c91 Binary files /dev/null and b/img/icons/indymedia/pageup.png differ diff --git a/img/icons/indymedia/person.png b/img/icons/indymedia/person.png new file mode 100644 index 000000000..ec5ce54a1 Binary files /dev/null and b/img/icons/indymedia/person.png differ diff --git a/img/icons/indymedia/prev.png b/img/icons/indymedia/prev.png new file mode 100644 index 000000000..f8844cacc Binary files /dev/null and b/img/icons/indymedia/prev.png differ diff --git a/img/icons/indymedia/qrcode.png b/img/icons/indymedia/qrcode.png new file mode 100644 index 000000000..933a2671c Binary files /dev/null and b/img/icons/indymedia/qrcode.png differ diff --git a/img/icons/indymedia/repeat.png b/img/icons/indymedia/repeat.png new file mode 100644 index 000000000..6a0a675cf Binary files /dev/null and b/img/icons/indymedia/repeat.png differ diff --git a/img/icons/indymedia/repeat_inactive.png b/img/icons/indymedia/repeat_inactive.png new file mode 100644 index 000000000..d6ad23831 Binary files /dev/null and b/img/icons/indymedia/repeat_inactive.png differ diff --git a/img/icons/indymedia/reply.png b/img/icons/indymedia/reply.png new file mode 100644 index 000000000..058a4ebce Binary files /dev/null and b/img/icons/indymedia/reply.png differ diff --git a/img/icons/indymedia/rss.png b/img/icons/indymedia/rss.png new file mode 100644 index 000000000..533453fc7 Binary files /dev/null and b/img/icons/indymedia/rss.png differ diff --git a/img/icons/indymedia/rss3.png b/img/icons/indymedia/rss3.png new file mode 100644 index 000000000..83521cd1b Binary files /dev/null and b/img/icons/indymedia/rss3.png differ diff --git a/img/icons/indymedia/scope_blog.png b/img/icons/indymedia/scope_blog.png new file mode 100644 index 000000000..ec6aeda94 Binary files /dev/null and b/img/icons/indymedia/scope_blog.png differ diff --git a/img/icons/indymedia/scope_dm.png b/img/icons/indymedia/scope_dm.png new file mode 100644 index 000000000..222ad6548 Binary files /dev/null and b/img/icons/indymedia/scope_dm.png differ diff --git a/img/icons/indymedia/scope_event.png b/img/icons/indymedia/scope_event.png new file mode 100644 index 000000000..de0fc7575 Binary files /dev/null and b/img/icons/indymedia/scope_event.png differ diff --git a/img/icons/indymedia/scope_followers.png b/img/icons/indymedia/scope_followers.png new file mode 100644 index 000000000..e2fa18fda Binary files /dev/null and b/img/icons/indymedia/scope_followers.png differ diff --git a/img/icons/indymedia/scope_public.png b/img/icons/indymedia/scope_public.png new file mode 100644 index 000000000..dd9762d9f Binary files /dev/null and b/img/icons/indymedia/scope_public.png differ diff --git a/img/icons/indymedia/scope_question.png b/img/icons/indymedia/scope_question.png new file mode 100644 index 000000000..bc4274457 Binary files /dev/null and b/img/icons/indymedia/scope_question.png differ diff --git a/img/icons/indymedia/scope_reminder.png b/img/icons/indymedia/scope_reminder.png new file mode 100644 index 000000000..a08fe1f5f Binary files /dev/null and b/img/icons/indymedia/scope_reminder.png differ diff --git a/img/icons/indymedia/scope_report.png b/img/icons/indymedia/scope_report.png new file mode 100644 index 000000000..9cb23e085 Binary files /dev/null and b/img/icons/indymedia/scope_report.png differ diff --git a/img/icons/indymedia/scope_share.png b/img/icons/indymedia/scope_share.png new file mode 100644 index 000000000..200a57c8a Binary files /dev/null and b/img/icons/indymedia/scope_share.png differ diff --git a/img/icons/indymedia/scope_unlisted.png b/img/icons/indymedia/scope_unlisted.png new file mode 100644 index 000000000..9d518201b Binary files /dev/null and b/img/icons/indymedia/scope_unlisted.png differ diff --git a/img/icons/indymedia/search.png b/img/icons/indymedia/search.png new file mode 100644 index 000000000..c7acefd3f Binary files /dev/null and b/img/icons/indymedia/search.png differ diff --git a/img/icons/indymedia/showhide.png b/img/icons/indymedia/showhide.png new file mode 100644 index 000000000..3bfda17d1 Binary files /dev/null and b/img/icons/indymedia/showhide.png differ diff --git a/img/icons/indymedia/unmute.png b/img/icons/indymedia/unmute.png new file mode 100644 index 000000000..0bec3cd2b Binary files /dev/null and b/img/icons/indymedia/unmute.png differ diff --git a/img/image_indymedia.png b/img/image_indymedia.png new file mode 100644 index 000000000..3ef63aa6f Binary files /dev/null and b/img/image_indymedia.png differ diff --git a/theme.py b/theme.py index 57e74fd1b..6c000581e 100644 --- a/theme.py +++ b/theme.py @@ -25,8 +25,8 @@ def getThemesList() -> []: and to lookup function names """ return ('Default', 'Blue', 'Hacker', 'Henge', 'HighVis', - 'LCD', 'Light', 'Night', 'Purple', 'Solidaric', - 'Starlight', 'Zen') + 'Indymedia', 'LCD', 'Light', 'Night', 'Purple', + 'Solidaric', 'Starlight', 'Zen') def setThemeInConfig(baseDir: str, name: str) -> bool: @@ -243,6 +243,51 @@ def setThemeDefault(baseDir: str): setThemeFromDict(baseDir, name, themeParams, bgParams) +def setThemeIndymedia(baseDir: str): + name = 'indymedia' + removeTheme(baseDir) + setThemeInConfig(baseDir, name) + bgParams = { + "login": "jpg", + "follow": "jpg", + "options": "jpg", + "search": "jpg" + } + themeParams = { + "focus-color": "blue", + "font-size-button-mobile": "36px", + "font-size": "32px", + "font-size2": "26px", + "font-size3": "40px", + "font-size4": "24px", + "font-size5": "22px", + "main-bg-color": "black", + "text-entry-background": "#0f0d10", + "link-bg-color": "#0f0d10", + "main-fg-color": "white", + "main-bg-color-dm": "#0b0a0a", + "border-color": "#003366", + "main-bg-color-reply": "#0f0d10", + "main-bg-color-report": "#0f0d10", + "hashtag-vertical-spacing3": "100px", + "hashtag-vertical-spacing4": "150px", + "button-background-hover": "#173048", + "button-background": "#003366", + "button-selected": "#011830", + "calendar-bg-color": "#0f0d10", + "lines-color": "#a961ab", + "day-number": "#a961ab", + "day-number2": "#555", + "time-color": "#a961ab", + "place-color": "#a961ab", + "event-color": "#a961ab", + "event-background": "#333", + "quote-right-margin": "0", + "border-color": "#003366" + } + setThemeFromDict(baseDir, name, themeParams, bgParams) + + def setThemeBlue(baseDir: str): name = 'blue' removeTheme(baseDir) @@ -296,7 +341,9 @@ def setThemeNight(baseDir: str): "font-size5": "22px", "main-bg-color": "#0f0d10", "text-entry-background": "#0f0d10", - "link-bg-color": "#0f0d10", + "link-bg-color": "black", + "main-link-color": "ff9900", + "main-link-color-hover": "#d09338"; "main-fg-color": "#a961ab", "main-bg-color-dm": "#0b0a0a", "border-color": "#606984", diff --git a/translations/ar.json b/translations/ar.json index 4cd299377..a27a5c6d2 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "يخطر عندما يتم اعجاب المشاركات", "Don't show the Like button": "لا تظهر زر أعجبني", "Autogenerated Hashtags": "علامات التجزئة المُنشأة تلقائيًا", - "Autogenerated Content Warnings": "تحذيرات المحتوى المُنشأ تلقائيًا" + "Autogenerated Content Warnings": "تحذيرات المحتوى المُنشأ تلقائيًا", + "Indymedia": "Indymedia" } diff --git a/translations/ca.json b/translations/ca.json index 03496a1a1..b24e0a819 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Notifiqueu-ho quan us agradin les publicacions", "Don't show the Like button": "No mostreu el botó M'agrada", "Autogenerated Hashtags": "Hashtags autogenerats", - "Autogenerated Content Warnings": "Advertiments de contingut autogenerats" + "Autogenerated Content Warnings": "Advertiments de contingut autogenerats", + "Indymedia": "Indymedia" } diff --git a/translations/cy.json b/translations/cy.json index a5a4d7b4d..65d011d4b 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Hysbysu pryd mae swyddi'n cael eu hoffi", "Don't show the Like button": "Peidiwch â dangos y botwm Hoffi", "Autogenerated Hashtags": "Hashtags awtogeneiddiedig", - "Autogenerated Content Warnings": "Rhybuddion Cynnwys Autogenerated" + "Autogenerated Content Warnings": "Rhybuddion Cynnwys Autogenerated", + "Indymedia": "Indymedia" } diff --git a/translations/de.json b/translations/de.json index db919e842..3ca9eee82 100644 --- a/translations/de.json +++ b/translations/de.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Benachrichtigen, wenn Beiträge gefallen", "Don't show the Like button": "Zeigen Sie nicht die Schaltfläche \"Gefällt mir\" an", "Autogenerated Hashtags": "Automatisch generierte Hashtags", - "Autogenerated Content Warnings": "Warnungen vor automatisch generierten Inhalten" + "Autogenerated Content Warnings": "Warnungen vor automatisch generierten Inhalten", + "Indymedia": "Indymedia" } diff --git a/translations/en.json b/translations/en.json index e55da2c5b..b93dfd158 100644 --- a/translations/en.json +++ b/translations/en.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Notify when posts are liked", "Don't show the Like button": "Don't show the Like button", "Autogenerated Hashtags": "Autogenerated Hashtags", - "Autogenerated Content Warnings": "Autogenerated Content Warnings" + "Autogenerated Content Warnings": "Autogenerated Content Warnings", + "Indymedia": "Indymedia" } diff --git a/translations/es.json b/translations/es.json index 31e0d4182..150aed26f 100644 --- a/translations/es.json +++ b/translations/es.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Notificar cuando les gusten las publicaciones", "Don't show the Like button": "No mostrar el botón Me gusta", "Autogenerated Hashtags": "Hashtags autogenerados", - "Autogenerated Content Warnings": "Advertencias de contenido generado automáticamente" + "Autogenerated Content Warnings": "Advertencias de contenido generado automáticamente", + "Indymedia": "Indymedia" } diff --git a/translations/fr.json b/translations/fr.json index 3e1f1228b..09be80db8 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Notifier lorsque les messages sont aimés", "Don't show the Like button": "Ne pas afficher le bouton J'aime", "Autogenerated Hashtags": "Hashtags générés automatiquement", - "Autogenerated Content Warnings": "Avertissements de contenu générés automatiquement" + "Autogenerated Content Warnings": "Avertissements de contenu générés automatiquement", + "Indymedia": "Indymedia" } diff --git a/translations/ga.json b/translations/ga.json index b00dca076..7434193c1 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Cuir in iúl cathain is maith poist", "Don't show the Like button": "Ná taispeáin an cnaipe Cosúil", "Autogenerated Hashtags": "Hashtags uathghinte", - "Autogenerated Content Warnings": "Rabhaidh Ábhar Uathghinte" + "Autogenerated Content Warnings": "Rabhaidh Ábhar Uathghinte", + "Indymedia": "Indymedia" } diff --git a/translations/hi.json b/translations/hi.json index e7eb445cd..59a9a1efd 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "पोस्ट पसंद आने पर सूचित करें", "Don't show the Like button": "लाइक बटन न दिखाएं", "Autogenerated Hashtags": "ऑटोजेनरेटेड हैशटैग", - "Autogenerated Content Warnings": "स्वतः प्राप्त सामग्री चेतावनी" + "Autogenerated Content Warnings": "स्वतः प्राप्त सामग्री चेतावनी", + "Indymedia": "Indymedia" } diff --git a/translations/it.json b/translations/it.json index d7b5f6738..7bc918965 100644 --- a/translations/it.json +++ b/translations/it.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Avvisa quando i post sono piaciuti", "Don't show the Like button": "Non mostrare il pulsante Mi piace", "Autogenerated Hashtags": "Hashtag generati automaticamente", - "Autogenerated Content Warnings": "Avvisi sui contenuti generati automaticamente" + "Autogenerated Content Warnings": "Avvisi sui contenuti generati automaticamente", + "Indymedia": "Indymedia" } diff --git a/translations/ja.json b/translations/ja.json index b5606b0d9..98f47d53e 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "投稿が高く評価されたときに通知する", "Don't show the Like button": "「いいね!」ボタンを表示しない", "Autogenerated Hashtags": "自動生成されたハッシュタグ", - "Autogenerated Content Warnings": "自動生成されたコンテンツの警告" + "Autogenerated Content Warnings": "自動生成されたコンテンツの警告", + "Indymedia": "Indymedia" } diff --git a/translations/oc.json b/translations/oc.json index 4afc6e95b..aeeeac9b8 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -281,5 +281,6 @@ "Notify when posts are liked": "Notify when posts are liked", "Don't show the Like button": "Don't show the Like button", "Autogenerated Hashtags": "Autogenerated Hashtags", - "Autogenerated Content Warnings": "Autogenerated Content Warnings" + "Autogenerated Content Warnings": "Autogenerated Content Warnings", + "Indymedia": "Indymedia" } diff --git a/translations/pt.json b/translations/pt.json index d61d5f067..c8167d622 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Notificar quando as postagens forem curtidas", "Don't show the Like button": "Não mostrar o botão Curtir", "Autogenerated Hashtags": "Hashtags autogeradas", - "Autogenerated Content Warnings": "Avisos de conteúdo gerado automaticamente" + "Autogenerated Content Warnings": "Avisos de conteúdo gerado automaticamente", + "Indymedia": "Indymedia" } diff --git a/translations/ru.json b/translations/ru.json index d7b9cda7d..daa47b268 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "Уведомлять, когда публикации нравятся", "Don't show the Like button": "Не показывать кнопку \"Нравится\"", "Autogenerated Hashtags": "Автоматически сгенерированные хештеги", - "Autogenerated Content Warnings": "Автоматические предупреждения о содержании" + "Autogenerated Content Warnings": "Автоматические предупреждения о содержании", + "Indymedia": "Indymedia" } diff --git a/translations/zh.json b/translations/zh.json index 4b957c8a5..d43831e42 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -285,5 +285,6 @@ "Notify when posts are liked": "通知喜欢的帖子", "Don't show the Like button": "不显示“赞”按钮", "Autogenerated Hashtags": "自动生成的标签", - "Autogenerated Content Warnings": "自动生成的内容警告" + "Autogenerated Content Warnings": "自动生成的内容警告", + "Indymedia": "Indymedia" }