Indymedia theme
							
								
								
									
										1
									
								
								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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
		 After Width: | Height: | Size: 17 KiB  | 
| 
		 After Width: | Height: | Size: 1.3 KiB  | 
| 
		 After Width: | Height: | Size: 2.2 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.3 KiB  | 
| 
		 After Width: | Height: | Size: 1.3 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.5 KiB  | 
| 
		 After Width: | Height: | Size: 1.5 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.5 KiB  | 
| 
		 After Width: | Height: | Size: 11 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 6.9 KiB  | 
| 
		 After Width: | Height: | Size: 5.3 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.3 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.5 KiB  | 
| 
		 After Width: | Height: | Size: 1.3 KiB  | 
| 
		 After Width: | Height: | Size: 1.6 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.3 KiB  | 
| 
		 After Width: | Height: | Size: 30 KiB  | 
							
								
								
									
										53
									
								
								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",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||