simplex-chat-6.5.0.7
Safe HaskellNone
LanguageHaskell2010

Simplex.Chat.Types.UITheme

Documentation

data UITheme Source #

Constructors

UITheme 

Instances

Instances details
FromJSON UITheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

parseJSON :: Value -> Parser UITheme

parseJSONList :: Value -> Parser [UITheme]

omittedField :: Maybe UITheme

ToJSON UITheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

toJSON :: UITheme -> Value

toEncoding :: UITheme -> Encoding

toJSONList :: [UITheme] -> Value

toEncodingList :: [UITheme] -> Encoding

omitField :: UITheme -> Bool

Show UITheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

showsPrec :: Int -> UITheme -> ShowS

show :: UITheme -> String

showList :: [UITheme] -> ShowS

Eq UITheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

(==) :: UITheme -> UITheme -> Bool

(/=) :: UITheme -> UITheme -> Bool

data UIColorMode Source #

Constructors

UCMLight 
UCMDark 

Instances

Instances details
FromJSON UIColorMode Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

parseJSON :: Value -> Parser UIColorMode

parseJSONList :: Value -> Parser [UIColorMode]

omittedField :: Maybe UIColorMode

ToJSON UIColorMode Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

toJSON :: UIColorMode -> Value

toEncoding :: UIColorMode -> Encoding

toJSONList :: [UIColorMode] -> Value

toEncodingList :: [UIColorMode] -> Encoding

omitField :: UIColorMode -> Bool

Show UIColorMode Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

showsPrec :: Int -> UIColorMode -> ShowS

show :: UIColorMode -> String

showList :: [UIColorMode] -> ShowS

Eq UIColorMode Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

(==) :: UIColorMode -> UIColorMode -> Bool

(/=) :: UIColorMode -> UIColorMode -> Bool

data UIThemeEntityOverrides Source #

data DarkColorScheme Source #

Constructors

DCSDark 
DCSBlack 
DCSSimplex 

Instances

Instances details
FromJSON DarkColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

parseJSON :: Value -> Parser DarkColorScheme

parseJSONList :: Value -> Parser [DarkColorScheme]

omittedField :: Maybe DarkColorScheme

ToJSON DarkColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Show DarkColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

showsPrec :: Int -> DarkColorScheme -> ShowS

show :: DarkColorScheme -> String

showList :: [DarkColorScheme] -> ShowS

Eq DarkColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Ord DarkColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

TextEncoding DarkColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

textEncode :: DarkColorScheme -> Text

textDecode :: Text -> Maybe DarkColorScheme

data ThemeColorScheme Source #

Instances

Instances details
FromJSON ThemeColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

parseJSON :: Value -> Parser ThemeColorScheme

parseJSONList :: Value -> Parser [ThemeColorScheme]

omittedField :: Maybe ThemeColorScheme

FromJSONKey ThemeColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

fromJSONKey :: FromJSONKeyFunction ThemeColorScheme

fromJSONKeyList :: FromJSONKeyFunction [ThemeColorScheme]

ToJSON ThemeColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

ToJSONKey ThemeColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

toJSONKey :: ToJSONKeyFunction ThemeColorScheme

toJSONKeyList :: ToJSONKeyFunction [ThemeColorScheme]

Show ThemeColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

showsPrec :: Int -> ThemeColorScheme -> ShowS

show :: ThemeColorScheme -> String

showList :: [ThemeColorScheme] -> ShowS

Eq ThemeColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Ord ThemeColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

TextEncoding ThemeColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

textEncode :: ThemeColorScheme -> Text

textDecode :: Text -> Maybe ThemeColorScheme

data UIColorScheme Source #

Instances

Instances details
FromJSON UIColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

parseJSON :: Value -> Parser UIColorScheme

parseJSONList :: Value -> Parser [UIColorScheme]

omittedField :: Maybe UIColorScheme

ToJSON UIColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

toJSON :: UIColorScheme -> Value

toEncoding :: UIColorScheme -> Encoding

toJSONList :: [UIColorScheme] -> Value

toEncodingList :: [UIColorScheme] -> Encoding

omitField :: UIColorScheme -> Bool

Show UIColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

showsPrec :: Int -> UIColorScheme -> ShowS

show :: UIColorScheme -> String

showList :: [UIColorScheme] -> ShowS

Eq UIColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Ord UIColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

TextEncoding UIColorScheme Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

textEncode :: UIColorScheme -> Text

textDecode :: Text -> Maybe UIColorScheme

data ChatWallpaper Source #

Constructors

ChatWallpaper 

Fields

Instances

Instances details
FromJSON ChatWallpaper Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

parseJSON :: Value -> Parser ChatWallpaper

parseJSONList :: Value -> Parser [ChatWallpaper]

omittedField :: Maybe ChatWallpaper

ToJSON ChatWallpaper Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

toJSON :: ChatWallpaper -> Value

toEncoding :: ChatWallpaper -> Encoding

toJSONList :: [ChatWallpaper] -> Value

toEncodingList :: [ChatWallpaper] -> Encoding

omitField :: ChatWallpaper -> Bool

Show ChatWallpaper Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

showsPrec :: Int -> ChatWallpaper -> ShowS

show :: ChatWallpaper -> String

showList :: [ChatWallpaper] -> ShowS

Eq ChatWallpaper Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

data ChatWallpaperScale Source #

Constructors

CWSFill 
CWSFit 
CWSRepeat 

Instances

Instances details
FromJSON ChatWallpaperScale Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

parseJSON :: Value -> Parser ChatWallpaperScale

parseJSONList :: Value -> Parser [ChatWallpaperScale]

omittedField :: Maybe ChatWallpaperScale

ToJSON ChatWallpaperScale Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Show ChatWallpaperScale Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

showsPrec :: Int -> ChatWallpaperScale -> ShowS

show :: ChatWallpaperScale -> String

showList :: [ChatWallpaperScale] -> ShowS

Eq ChatWallpaperScale Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

data UIColors Source #

Constructors

UIColors 

Fields

Instances

Instances details
FromJSON UIColors Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

parseJSON :: Value -> Parser UIColors

parseJSONList :: Value -> Parser [UIColors]

omittedField :: Maybe UIColors

ToJSON UIColors Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

toJSON :: UIColors -> Value

toEncoding :: UIColors -> Encoding

toJSONList :: [UIColors] -> Value

toEncodingList :: [UIColors] -> Encoding

omitField :: UIColors -> Bool

Show UIColors Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

showsPrec :: Int -> UIColors -> ShowS

show :: UIColors -> String

showList :: [UIColors] -> ShowS

Eq UIColors Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

(==) :: UIColors -> UIColors -> Bool

(/=) :: UIColors -> UIColors -> Bool

newtype UIColor Source #

Constructors

UIColor String 

Instances

Instances details
FromJSON UIColor Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

parseJSON :: Value -> Parser UIColor

parseJSONList :: Value -> Parser [UIColor]

omittedField :: Maybe UIColor

ToJSON UIColor Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

toJSON :: UIColor -> Value

toEncoding :: UIColor -> Encoding

toJSONList :: [UIColor] -> Value

toEncodingList :: [UIColor] -> Encoding

omitField :: UIColor -> Bool

Show UIColor Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

showsPrec :: Int -> UIColor -> ShowS

show :: UIColor -> String

showList :: [UIColor] -> ShowS

Eq UIColor Source # 
Instance details

Defined in Simplex.Chat.Types.UITheme

Methods

(==) :: UIColor -> UIColor -> Bool

(/=) :: UIColor -> UIColor -> Bool