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:
parent
053035f350
commit
eb3adfd4d1
@ -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(
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user