mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 03:28:03 +00:00
Merge pull request #3351 from NicKoehler/file-manager-redesign
Back icon fix and backgroundColor flutter migration
This commit is contained in:
@@ -75,7 +75,8 @@ class ChatPage extends StatelessWidget implements PageShape {
|
||||
hintText:
|
||||
"${translate('Write a message')}...",
|
||||
filled: true,
|
||||
fillColor: Theme.of(context).backgroundColor,
|
||||
fillColor:
|
||||
Theme.of(context).colorScheme.background,
|
||||
contentPadding: EdgeInsets.all(10),
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(6),
|
||||
@@ -88,7 +89,8 @@ class ChatPage extends StatelessWidget implements PageShape {
|
||||
: defaultInputDecoration(
|
||||
hintText:
|
||||
"${translate('Write a message')}...",
|
||||
fillColor: Theme.of(context).backgroundColor),
|
||||
fillColor:
|
||||
Theme.of(context).colorScheme.background),
|
||||
sendButtonBuilder: defaultSendButton(
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 6, vertical: 0),
|
||||
|
||||
@@ -170,8 +170,8 @@ class _PeerCardState extends State<_PeerCard>
|
||||
),
|
||||
Expanded(
|
||||
child: Container(
|
||||
decoration:
|
||||
BoxDecoration(color: Theme.of(context).backgroundColor),
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.background),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
@@ -266,7 +266,7 @@ class _PeerCardState extends State<_PeerCard>
|
||||
),
|
||||
),
|
||||
Container(
|
||||
color: Theme.of(context).backgroundColor,
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
@@ -1173,7 +1173,7 @@ class ActionMore extends StatelessWidget {
|
||||
radius: 14,
|
||||
backgroundColor: _hover.value
|
||||
? Theme.of(context).scaffoldBackgroundColor
|
||||
: Theme.of(context).backgroundColor,
|
||||
: Theme.of(context).colorScheme.background,
|
||||
child: Icon(Icons.more_vert,
|
||||
size: 18,
|
||||
color: _hover.value
|
||||
|
||||
@@ -156,7 +156,7 @@ class _PeerTabPageState extends State<PeerTabPage>
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: model.currentTab == t
|
||||
? Theme.of(context).backgroundColor
|
||||
? Theme.of(context).colorScheme.background
|
||||
: null,
|
||||
borderRadius: BorderRadius.circular(isDesktop ? 2 : 6),
|
||||
),
|
||||
@@ -231,7 +231,8 @@ class _PeerTabPageState extends State<PeerTabPage>
|
||||
|
||||
Widget _createPeerViewTypeSwitch(BuildContext context) {
|
||||
final textColor = Theme.of(context).textTheme.titleLarge?.color;
|
||||
final activeDeco = BoxDecoration(color: Theme.of(context).backgroundColor);
|
||||
final activeDeco =
|
||||
BoxDecoration(color: Theme.of(context).colorScheme.background);
|
||||
return Row(
|
||||
children: [PeerUiType.grid, PeerUiType.list]
|
||||
.map((type) => Obx(
|
||||
@@ -351,7 +352,7 @@ class _PeerSearchBarState extends State<PeerSearchBar> {
|
||||
return Container(
|
||||
width: 120,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).backgroundColor,
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
borderRadius: BorderRadius.circular(6),
|
||||
),
|
||||
child: Obx(() => Row(
|
||||
|
||||
Reference in New Issue
Block a user