반출/백판/출석 달력/친구/그룹 스터디 검정 버튼을 테마 강조색으로 변경
각 화면의 주요 CTA 버튼(ElevatedButton/FloatingActionButton)이 고정 색 AppPalette.ink로 칠해져 있어서, 다른 화면들처럼 테마를 적용해도 버튼만 계속 검정색으로 남아있었다. globalProfileTheme.value?.accent로 교체해서 장착한 템플릿의 강조색을 따라가게 했다. AppBar 아이콘 색(foregroundColor)과 danger/warning 등 의미 있는 색은 그대로 둔다.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../function/group_controller.dart';
|
||||
import '../theme/app_palette.dart';
|
||||
import '../theme/theme_sync.dart';
|
||||
import 'app_notice.dart';
|
||||
import 'group_detail_screen.dart';
|
||||
import 'launchpad_transition.dart';
|
||||
@@ -86,7 +87,8 @@ class _GroupListScreenState extends State<GroupListScreen> {
|
||||
),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: AppPalette.ink,
|
||||
backgroundColor:
|
||||
globalProfileTheme.value?.accent ?? AppPalette.ink,
|
||||
foregroundColor: AppPalette.paper,
|
||||
),
|
||||
onPressed: () => Navigator.pop(dialogContext, true),
|
||||
@@ -183,7 +185,7 @@ class _GroupListScreenState extends State<GroupListScreen> {
|
||||
elevation: 0,
|
||||
),
|
||||
floatingActionButton: FloatingActionButton.extended(
|
||||
backgroundColor: AppPalette.ink,
|
||||
backgroundColor: globalProfileTheme.value?.accent ?? AppPalette.ink,
|
||||
foregroundColor: AppPalette.paper,
|
||||
onPressed: _showCreateGroupDialog,
|
||||
icon: const Icon(Icons.add_rounded),
|
||||
@@ -241,7 +243,9 @@ class _GroupListScreenState extends State<GroupListScreen> {
|
||||
),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: AppPalette.ink,
|
||||
backgroundColor:
|
||||
globalProfileTheme.value?.accent ??
|
||||
AppPalette.ink,
|
||||
foregroundColor: AppPalette.paper,
|
||||
),
|
||||
onPressed: () => _respondInvite(
|
||||
@@ -447,7 +451,11 @@ class _GroupListScreenState extends State<GroupListScreen> {
|
||||
else
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: AppPalette.ink,
|
||||
backgroundColor:
|
||||
globalProfileTheme
|
||||
.value
|
||||
?.accent ??
|
||||
AppPalette.ink,
|
||||
foregroundColor: AppPalette.paper,
|
||||
),
|
||||
onPressed: () =>
|
||||
|
||||
Reference in New Issue
Block a user