Skip to content

Commit 4dd2bf3

Browse files
committed
Theme bug fixed and fixed border colour for light theme
1 parent 006463d commit 4dd2bf3

File tree

5 files changed

+16
-19
lines changed

5 files changed

+16
-19
lines changed

lib/Components/RSSFeedHomePage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
837837
isScrollControlled: true,
838838
context: context,
839839
backgroundColor: ThemeProvider
840-
.theme.backgroundColor,
840+
.theme.primaryColorLight,
841841
builder: (context) {
842842
return ListView(
843843
shrinkWrap: true,

lib/Components/add_automatic_torrent.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,11 @@ class _AddAutoTorrentState extends State<AddAutoTorrent> {
6464
height: 60,
6565
width: double.infinity,
6666
decoration: BoxDecoration(
67-
border: Border.all(color: Colors.white38),
68-
borderRadius: BorderRadius.only(
69-
topRight: Radius.circular(8),
70-
topLeft: Radius.circular(8),
71-
bottomLeft: Radius.circular(8),
72-
bottomRight: Radius.circular(8),
73-
),
67+
border: Border.all(
68+
color: ThemeProvider.themeMode == ThemeMode.light
69+
? Colors.black38
70+
: Colors.white38),
71+
borderRadius: BorderRadius.circular(8),
7472
color: ThemeProvider.theme.primaryColorLight,
7573
),
7674
child: Row(

lib/Components/bottom_floating_menu_button.dart

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class _BottomFloatingMenuButtonState extends State<BottomFloatingMenuButton>
100100
),
101101
isScrollControlled: true,
102102
context: context,
103-
backgroundColor: ThemeProvider.theme.backgroundColor,
103+
backgroundColor: ThemeProvider.theme.primaryColorLight,
104104
builder: (context) {
105105
return ListView(shrinkWrap: true, children: [
106106
Padding(
@@ -128,13 +128,12 @@ class _BottomFloatingMenuButtonState extends State<BottomFloatingMenuButton>
128128
height: 60,
129129
width: double.infinity,
130130
decoration: BoxDecoration(
131-
border: Border.all(color: Colors.white38),
132-
borderRadius: BorderRadius.only(
133-
topRight: Radius.circular(8),
134-
topLeft: Radius.circular(8),
135-
bottomLeft: Radius.circular(8),
136-
bottomRight: Radius.circular(8),
137-
),
131+
border: Border.all(
132+
color: ThemeProvider.themeMode ==
133+
ThemeMode.light
134+
? Colors.black38
135+
: Colors.white38),
136+
borderRadius: BorderRadius.circular(8),
138137
color:
139138
ThemeProvider.theme.primaryColorLight,
140139
),
@@ -381,7 +380,7 @@ class _BottomFloatingMenuButtonState extends State<BottomFloatingMenuButton>
381380
),
382381
isScrollControlled: true,
383382
context: context,
384-
backgroundColor: ThemeProvider.theme.backgroundColor,
383+
backgroundColor: ThemeProvider.theme.primaryColorLight,
385384
builder: (context) {
386385
return ListView(shrinkWrap: true, children: [
387386
Padding(

lib/Components/torrent_tile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class _TorrentTileState extends State<TorrentTile> {
3737
),
3838
isScrollControlled: true,
3939
context: context,
40-
backgroundColor: ThemeProvider.theme.backgroundColor,
40+
backgroundColor: ThemeProvider.theme.scaffoldBackgroundColor,
4141
builder: (context) {
4242
return DeleteTorrentSheet(
4343
torrent: widget.model,

lib/Pages/home_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class _HomeScreenState extends State<HomeScreen> {
9191
),
9292
isScrollControlled: true,
9393
context: context,
94-
backgroundColor: ThemeProvider.theme.backgroundColor,
94+
backgroundColor: ThemeProvider.theme.primaryColorLight,
9595
builder: (context) {
9696
return AddAutoTorrent(
9797
base64: base64, imageBytes: imageBytes, uriString: uriString);

0 commit comments

Comments
 (0)