1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 14:29:22 +00:00

Import weblink posts on dark theme

This commit is contained in:
Pierre HUBERT 2019-11-02 12:48:47 +01:00
parent 053035f350
commit eb3adfd4d1
2 changed files with 3 additions and 2 deletions

View File

@ -281,7 +281,8 @@ class _PostTileState extends State<PostTile> {
Widget _buildPostWebLink() {
return Card(
color: Color.fromRGBO(0xf7, 0xf7, 0xf7, 1),
color:
darkTheme() ? darkerAccentColor : Color.fromRGBO(0xf7, 0xf7, 0xf7, 1),
child: InkWell(
onTap: () => launch(widget.post.linkURL),
child: Row(

View File

@ -181,8 +181,8 @@ String htmlDecodeCharacters(String input) {
return parse(input).documentElement.text;
}
const darkAccentColor = Colors.white70;
const darkerAccentColor = Colors.white30;
/// Check out whether dark theme is enabled or not
bool darkTheme() => preferences().getBool(PreferencesKeyList.ENABLE_DARK_THEME);