mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-27 17:40:38 +00:00
Added a new Medium media style
This commit is contained in:
parent
37a69650ef
commit
4576507225
19 changed files with 24 additions and 2 deletions
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Толькі кнопкі";
|
||||
"enum.status-display-style.compact" = "Кампактны";
|
||||
"enum.status-display-style.large" = "Вялікі";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "Значкі з тэкстам";
|
||||
"enum.swipeactions.icon-only" = "Толькі значкі";
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Només els botons";
|
||||
"enum.status-display-style.compact" = "Compacte";
|
||||
"enum.status-display-style.large" = "Gran";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "Icon with text";
|
||||
"enum.swipeactions.icon-only" = "Icon only";
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"enum.status-actions-display.no-buttons" = "Keine Buttons";
|
||||
"enum.status-actions-display.only-buttons" = "Nur Buttons";
|
||||
"enum.status-display-style.compact" = "Kompakt";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.status-display-style.large" = "Groß";
|
||||
"enum.swipeactions.icon-with-text" = "Symbol mit Text";
|
||||
"enum.swipeactions.icon-only" = "Nur Symbol";
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Only buttons";
|
||||
"enum.status-display-style.compact" = "Compact";
|
||||
"enum.status-display-style.large" = "Large";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "Icon with text";
|
||||
"enum.swipeactions.icon-only" = "Icon only";
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"enum.status-actions-display.no-buttons" = "No buttons";
|
||||
"enum.status-actions-display.only-buttons" = "Only buttons";
|
||||
"enum.status-display-style.compact" = "Compact";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.status-display-style.large" = "Large";
|
||||
"enum.swipeactions.icon-with-text" = "Icon with text";
|
||||
"enum.swipeactions.icon-only" = "Icon only";
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"enum.status-actions-display.no-buttons" = "Sin botones";
|
||||
"enum.status-actions-display.only-buttons" = "Sólo botones";
|
||||
"enum.status-display-style.compact" = "Compacto";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.status-display-style.large" = "Grande";
|
||||
"enum.swipeactions.icon-with-text" = "Icon with text";
|
||||
"enum.swipeactions.icon-only" = "Icon only";
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Botoiak bakarrik";
|
||||
"enum.status-display-style.compact" = "Trinkoa";
|
||||
"enum.status-display-style.large" = "Handia";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "Ikonoa eta testua";
|
||||
"enum.swipeactions.icon-only" = "Ikonoa soilik";
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Seulement les boutons";
|
||||
"enum.status-display-style.compact" = "Compact";
|
||||
"enum.status-display-style.large" = "Grand";
|
||||
"enum.status-display-style.medium" = "Moyen";
|
||||
"enum.swipeactions.icon-with-text" = "Icon with text";
|
||||
"enum.swipeactions.icon-only" = "Icon only";
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Solo bottoni";
|
||||
"enum.status-display-style.compact" = "Compatto";
|
||||
"enum.status-display-style.large" = "Completo";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "Icon e testo";
|
||||
"enum.swipeactions.icon-only" = "Solo icone";
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "ボタンのみ";
|
||||
"enum.status-display-style.compact" = "縮小";
|
||||
"enum.status-display-style.large" = "拡大";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "アイコンと文字";
|
||||
"enum.swipeactions.icon-only" = "アイコンのみ";
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "버튼만 표시";
|
||||
"enum.status-display-style.compact" = "작게";
|
||||
"enum.status-display-style.large" = "크게";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "아이콘과 텍스트";
|
||||
"enum.swipeactions.icon-only" = "아이콘만";
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Bare knapper";
|
||||
"enum.status-display-style.compact" = "Kompakt";
|
||||
"enum.status-display-style.large" = "Stor";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "Icon with text";
|
||||
"enum.swipeactions.icon-only" = "Icon only";
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"enum.status-actions-display.no-buttons" = "Geen knoppen";
|
||||
"enum.status-actions-display.only-buttons" = "Zonder tekst";
|
||||
"enum.status-display-style.compact" = "Compact";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.status-display-style.large" = "Groot";
|
||||
"enum.swipeactions.icon-with-text" = "Symbolen en tekst";
|
||||
"enum.swipeactions.icon-only" = "Alleen symbolen";
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Tylko przyciski";
|
||||
"enum.status-display-style.compact" = "Pomniejszone";
|
||||
"enum.status-display-style.large" = "Duże";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "Ikona z tekstem";
|
||||
"enum.swipeactions.icon-only" = "Tylko ikona";
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Somente botões";
|
||||
"enum.status-display-style.compact" = "Compacto";
|
||||
"enum.status-display-style.large" = "Largo";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "Icon with text";
|
||||
"enum.swipeactions.icon-only" = "Icon only";
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "Sadece Butonlar";
|
||||
"enum.status-display-style.compact" = "Kompakt";
|
||||
"enum.status-display-style.large" = "Geniş";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "Icon with text";
|
||||
"enum.swipeactions.icon-only" = "Icon only";
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"enum.status-actions-display.only-buttons" = "仅图标";
|
||||
"enum.status-display-style.compact" = "紧凑";
|
||||
"enum.status-display-style.large" = "宽松";
|
||||
"enum.status-display-style.medium" = "Medium";
|
||||
"enum.swipeactions.icon-with-text" = "图标和文本";
|
||||
"enum.swipeactions.icon-only" = "仅图标";
|
||||
|
||||
|
|
|
@ -76,12 +76,14 @@ public class Theme: ObservableObject {
|
|||
}
|
||||
|
||||
public enum StatusDisplayStyle: String, CaseIterable {
|
||||
case large, compact
|
||||
case large, medium, compact
|
||||
|
||||
public var description: LocalizedStringKey {
|
||||
switch self {
|
||||
case .large:
|
||||
return "enum.status-display-style.large"
|
||||
case .medium:
|
||||
return "enum.status-display-style.medium"
|
||||
case .compact:
|
||||
return "enum.status-display-style.compact"
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ public struct StatusRowMediaPreviewView: View {
|
|||
|
||||
var availableWidth: CGFloat {
|
||||
if UIDevice.current.userInterfaceIdiom == .phone &&
|
||||
(UIDevice.current.orientation == .landscapeLeft || UIDevice.current.orientation == .landscapeRight) {
|
||||
(UIDevice.current.orientation == .landscapeLeft || UIDevice.current.orientation == .landscapeRight) || theme.statusDisplayStyle == .medium {
|
||||
return sceneDelegate.windowWidth * 0.80
|
||||
}
|
||||
return sceneDelegate.windowWidth
|
||||
|
@ -55,6 +55,9 @@ public struct StatusRowMediaPreviewView: View {
|
|||
return 50
|
||||
}
|
||||
if theme.statusDisplayStyle == .compact {
|
||||
if attachments.count == 1 {
|
||||
return 200
|
||||
}
|
||||
return 100
|
||||
}
|
||||
if attachments.count == 1 {
|
||||
|
|
Loading…
Reference in a new issue