dont know what i did
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 272 KiB |
|
After Width: | Height: | Size: 244 KiB |
|
After Width: | Height: | Size: 229 KiB |
|
Before Width: | Height: | Size: 231 KiB |
|
After Width: | Height: | Size: 280 KiB |
|
Before Width: | Height: | Size: 263 KiB |
@@ -60,20 +60,21 @@ class TargetStyle {
|
|||||||
TargetStyle(79, 'Dan državnosti', 'Statehood Day', 'Staatsfeiertag', TargetGroup.holiday, Color(0xFF1C4FA0)),
|
TargetStyle(79, 'Dan državnosti', 'Statehood Day', 'Staatsfeiertag', TargetGroup.holiday, Color(0xFF1C4FA0)),
|
||||||
];
|
];
|
||||||
|
|
||||||
/// The designs the app ships, in picker order (light to dark, then by
|
/// The designs the app ships, in picker order (a 3 × 3 grid). The rest of
|
||||||
/// colour round the wheel: a 3 × 3 grid). The rest of the v5 set
|
/// the v5 set (FigCraft Designs/target-designs/v5) is not used for now; to
|
||||||
/// (FigCraft Designs/target-designs/v5) is not used for now; to bring one
|
/// bring one back, add its line here and its webp to assets/targets/v5 (and
|
||||||
/// back, add its line here and its webp to assets/targets/v5.
|
/// its backgrounds to assets/backgrounds). A saved id that is no longer
|
||||||
|
/// here (1, 19, 42 from earlier versions) falls back to the default.
|
||||||
static const List<TargetStyle> all = [
|
static const List<TargetStyle> all = [
|
||||||
fallback,
|
fallback,
|
||||||
TargetStyle(42, 'ISSF ecru', 'ISSF ecru', 'ISSF Ecru', TargetGroup.design, Color(0xFFE8D9B0)),
|
|
||||||
TargetStyle(7, 'Sončno rumena', 'Sunny yellow', 'Sonnengelb', TargetGroup.classic, Color(0xFFFFA000)),
|
|
||||||
TargetStyle(19, 'Oranžna', 'Orange', 'Orange', TargetGroup.classic, Color(0xFFFF5A00)),
|
|
||||||
TargetStyle(5, 'Plameni', 'Flames', 'Flammen', TargetGroup.classic, Color(0xFFFF3D00)),
|
TargetStyle(5, 'Plameni', 'Flames', 'Flammen', TargetGroup.classic, Color(0xFFFF3D00)),
|
||||||
TargetStyle(61, 'Cvetlice', 'Flowers', 'Blumen', TargetGroup.design, Color(0xFFFF6FB0)),
|
TargetStyle(7, 'Sončno rumena', 'Sunny yellow', 'Sonnengelb', TargetGroup.classic, Color(0xFFFFA000)),
|
||||||
TargetStyle(18, 'Ledeni kristal', 'Ice crystal', 'Eiskristall', TargetGroup.classic, Color(0xFF00B8FF)),
|
TargetStyle(18, 'Ledeni kristal', 'Ice crystal', 'Eiskristall', TargetGroup.classic, Color(0xFF00B8FF)),
|
||||||
|
TargetStyle(40, 'Kovinar', 'Kovinar', 'Kovinar', TargetGroup.design, Color(0xFF12855C)),
|
||||||
TargetStyle(53, 'Kamuflaža', 'Camouflage', 'Tarnmuster', TargetGroup.design, Color(0xFF3E4A26)),
|
TargetStyle(53, 'Kamuflaža', 'Camouflage', 'Tarnmuster', TargetGroup.design, Color(0xFF3E4A26)),
|
||||||
TargetStyle(1, 'Lovorov venec', 'Laurel wreath', 'Lorbeerkranz', TargetGroup.classic, Color(0xFF3E8A1E)),
|
TargetStyle(61, 'Cvetlice', 'Flowers', 'Blumen', TargetGroup.design, Color(0xFFFF6FB0)),
|
||||||
|
TargetStyle(11, 'Galaksija', 'Galaxy', 'Galaxie', TargetGroup.classic, Color(0xFF6A2DFF)),
|
||||||
|
TargetStyle(14, 'Mavrica', 'Rainbow', 'Regenbogen', TargetGroup.classic, Color(0xFF7A5CFF)),
|
||||||
];
|
];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -67,18 +67,35 @@ class SettingsScreen extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Hit colour and target design are picked in one sheet
|
// Hit colour and target design are picked in one sheet
|
||||||
|
// The target itself is the row's icon, with the hit colour
|
||||||
|
// as a dot on it; names in the subtitle
|
||||||
SettingsTile(
|
SettingsTile(
|
||||||
icon: Icons.track_changes_rounded,
|
leading: SizedBox(
|
||||||
title: t('Hits and target'),
|
width: 34,
|
||||||
valueLeading: Row(
|
height: 34,
|
||||||
mainAxisSize: MainAxisSize.min,
|
child: Stack(
|
||||||
|
clipBehavior: Clip.none,
|
||||||
children: [
|
children: [
|
||||||
_ColorDot(s.bulletColor, size: 16),
|
TargetThumb(s.target, size: 34),
|
||||||
const SizedBox(width: 8),
|
Positioned(
|
||||||
TargetThumb(s.target, size: 26),
|
right: -3,
|
||||||
|
bottom: -3,
|
||||||
|
child: Container(
|
||||||
|
width: 14,
|
||||||
|
height: 14,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: s.bulletColor,
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
border: Border.all(color: c.card, width: 2),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
value: s.target.name(s.language),
|
),
|
||||||
|
title: t('Hits and target'),
|
||||||
|
subtitle: '${s.target.name(s.language)} · '
|
||||||
|
'${s.holidayColorActive ? s.holiday!.name : t(s.bulletColorName)}',
|
||||||
onTap: () => showAppearanceSheet(context),
|
onTap: () => showAppearanceSheet(context),
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
@@ -383,7 +400,7 @@ void showAppearanceSheet(BuildContext context) {
|
|||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
SheetTitle(s.t('Appearance'), trailing: TargetThumb(s.target, size: 52)),
|
SheetTitle(s.t('Hits and target')),
|
||||||
Kicker(s.t('Bullet color'), padding: const EdgeInsets.only(bottom: 12)),
|
Kicker(s.t('Bullet color'), padding: const EdgeInsets.only(bottom: 12)),
|
||||||
// During a holiday its colour gets its own line first (and is the
|
// During a holiday its colour gets its own line first (and is the
|
||||||
// one in use until another is picked)
|
// one in use until another is picked)
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ class _TargetScreenState extends State<TargetScreen> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// A ready camera: a normal card outlined in the hit colour, its icon on a
|
// A ready camera: a normal card thinly outlined and glowing in the hit colour, its icon on a
|
||||||
// soft badge of that colour, the name in the text colour. One not set up is
|
// soft badge of that colour, the name in the text colour. One not set up is
|
||||||
// dashed, with a plus.
|
// dashed, with a plus.
|
||||||
Widget _cameraTile(AppSettings s, Palette c, int position, bool ready) {
|
Widget _cameraTile(AppSettings s, Palette c, int position, bool ready) {
|
||||||
@@ -221,8 +221,9 @@ class _TargetScreenState extends State<TargetScreen> {
|
|||||||
);
|
);
|
||||||
return AppCard(
|
return AppCard(
|
||||||
dashed: !ready,
|
dashed: !ready,
|
||||||
borderColor: ready ? c.accent : null,
|
// Thin, softened outline with a small glow in the hit colour
|
||||||
borderWidth: ready ? 1.5 : 1,
|
borderColor: ready ? c.accent.withValues(alpha: 0.6) : null,
|
||||||
|
glow: ready ? c.accent : null,
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
onTap: () => _openPosition(position),
|
onTap: () => _openPosition(position),
|
||||||
child: content,
|
child: content,
|
||||||
|
|||||||
@@ -434,13 +434,27 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
|
|||||||
12 + MediaQuery.paddingOf(context).bottom),
|
12 + MediaQuery.paddingOf(context).bottom),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
// A session: its target list, to see, edit and delete each one.
|
// A single target: delete on the left, out of the thumb's easy
|
||||||
// A single target: correct its hits.
|
// reach, and correcting its hits on the right. A session: its
|
||||||
|
// target list on the left (to see, edit and delete each one) and
|
||||||
|
// the chart toggle on the right. The combined view has no delete:
|
||||||
|
// it would remove an arbitrary one of its targets; sessions are
|
||||||
|
// deleted from Knjiga.
|
||||||
|
if (widget.isCombinedView)
|
||||||
SquareButton(
|
SquareButton(
|
||||||
size: 52,
|
size: 52,
|
||||||
icon: Icons.edit_outlined,
|
icon: Icons.edit_outlined,
|
||||||
tooltip: s.t(widget.isCombinedView ? 'Edit' : 'Edit target'),
|
tooltip: s.t('Edit'),
|
||||||
onTap: widget.isCombinedView ? _openSession : _editTarget,
|
onTap: _openSession,
|
||||||
|
)
|
||||||
|
else
|
||||||
|
SquareButton(
|
||||||
|
size: 52,
|
||||||
|
icon: Icons.delete_outline_rounded,
|
||||||
|
color: c.red,
|
||||||
|
background: c.redSoft,
|
||||||
|
tooltip: s.t('Delete'),
|
||||||
|
onTap: _deleteTarget,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -457,15 +471,11 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
|
|||||||
onTap: () => setState(() => _showChart = !_showChart),
|
onTap: () => setState(() => _showChart = !_showChart),
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
// The combined view shows a whole session; deleting would remove an
|
|
||||||
// arbitrary one of its targets. Sessions are deleted from Knjiga.
|
|
||||||
SquareButton(
|
SquareButton(
|
||||||
size: 52,
|
size: 52,
|
||||||
icon: Icons.delete_outline_rounded,
|
icon: Icons.edit_outlined,
|
||||||
color: c.red,
|
tooltip: s.t('Edit target'),
|
||||||
background: c.redSoft,
|
onTap: _editTarget,
|
||||||
tooltip: s.t('Delete'),
|
|
||||||
onTap: _deleteTarget,
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -375,6 +375,7 @@ class AppCard extends StatelessWidget {
|
|||||||
final Color? borderColor;
|
final Color? borderColor;
|
||||||
final double borderWidth;
|
final double borderWidth;
|
||||||
final bool dashed;
|
final bool dashed;
|
||||||
|
final Color? glow; // a soft halo in this colour round the card
|
||||||
|
|
||||||
const AppCard({
|
const AppCard({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -387,6 +388,7 @@ class AppCard extends StatelessWidget {
|
|||||||
this.borderColor,
|
this.borderColor,
|
||||||
this.borderWidth = 1,
|
this.borderWidth = 1,
|
||||||
this.dashed = false,
|
this.dashed = false,
|
||||||
|
this.glow,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -408,6 +410,14 @@ class AppCard extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
if (dashed) {
|
if (dashed) {
|
||||||
card = CustomPaint(painter: _DashedBorder(color: c.line, radius: radius), child: card);
|
card = CustomPaint(painter: _DashedBorder(color: c.line, radius: radius), child: card);
|
||||||
|
} else if (glow != null) {
|
||||||
|
card = DecoratedBox(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(radius),
|
||||||
|
boxShadow: [BoxShadow(color: glow!.withValues(alpha: c.isDark ? 0.28 : 0.22), blurRadius: 14)],
|
||||||
|
),
|
||||||
|
child: card,
|
||||||
|
);
|
||||||
} else if (!c.isDark && color == null) {
|
} else if (!c.isDark && color == null) {
|
||||||
card = DecoratedBox(
|
card = DecoratedBox(
|
||||||
decoration: BoxDecoration(borderRadius: BorderRadius.circular(radius), boxShadow: c.shadow),
|
decoration: BoxDecoration(borderRadius: BorderRadius.circular(radius), boxShadow: c.shadow),
|
||||||
|
|||||||