mirror of
https://github.com/stonega/tsacdop
synced 2025-02-08 23:58:46 +01:00
Update addToPlaylist button style.
This commit is contained in:
parent
cc0f5a4908
commit
5e493fa9bd
@ -938,8 +938,8 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
tooltip: s
|
tooltip: s
|
||||||
.addNewEpisodeTooltip,
|
.addNewEpisodeTooltip,
|
||||||
icon: SizedBox(
|
icon: SizedBox(
|
||||||
height: 16,
|
height: 15,
|
||||||
width: 21,
|
width: 20,
|
||||||
child: CustomPaint(
|
child: CustomPaint(
|
||||||
painter: AddToPlaylistPainter(
|
painter: AddToPlaylistPainter(
|
||||||
context
|
context
|
||||||
@ -977,8 +977,8 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
tooltip: s
|
tooltip: s
|
||||||
.addNewEpisodeTooltip,
|
.addNewEpisodeTooltip,
|
||||||
icon: SizedBox(
|
icon: SizedBox(
|
||||||
height: 16,
|
height: 15,
|
||||||
width: 21,
|
width: 20,
|
||||||
child:
|
child:
|
||||||
CustomPaint(
|
CustomPaint(
|
||||||
painter:
|
painter:
|
||||||
@ -995,6 +995,8 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||||||
Material(
|
Material(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
|
tooltip:
|
||||||
|
s.hideListenedSetting,
|
||||||
icon: SizedBox(
|
icon: SizedBox(
|
||||||
width: 30,
|
width: 30,
|
||||||
height: 15,
|
height: 15,
|
||||||
|
@ -352,20 +352,13 @@ class AddToPlaylistPainter extends CustomPainter {
|
|||||||
..strokeCap = StrokeCap.round
|
..strokeCap = StrokeCap.round
|
||||||
..style = PaintingStyle.stroke;
|
..style = PaintingStyle.stroke;
|
||||||
var _path = Path();
|
var _path = Path();
|
||||||
_path.moveTo(0, 0);
|
_path.moveTo(0, size.height / 5);
|
||||||
_path.lineTo(size.width * 4 / 7, 0);
|
_path.lineTo(size.width * 4 / 7, size.height / 5);
|
||||||
_path.moveTo(0, size.height / 3);
|
_path.moveTo(0, size.height / 2);
|
||||||
_path.lineTo(size.width * 4 / 7, size.height / 3);
|
_path.lineTo(size.width * 4 / 7, size.height / 2);
|
||||||
_path.moveTo(0, size.height * 2 / 3);
|
_path.moveTo(0, size.height * 4 / 5);
|
||||||
_path.lineTo(size.width * 3 / 7, size.height * 2 / 3);
|
_path.lineTo(size.width * 3 / 7, size.height * 4 / 5);
|
||||||
//_path.moveTo(size.width * 3 / 7, size.height * 2 / 3);
|
|
||||||
//_path.lineTo(size.width, size.height * 2 / 3);
|
|
||||||
//_path.moveTo(size.width * 5 / 7, size.height / 3);
|
|
||||||
//_path.lineTo(size.width * 5 / 7, size.height);
|
|
||||||
// _path.moveTo(size.width*5/7, size.height/4);
|
|
||||||
// _path.lineTo(size.width*11/14, 0);
|
|
||||||
// _path.lineTo(size.width*13/14, size.height/4);
|
|
||||||
// _path.lineTo(size.width, 0);
|
|
||||||
var textPainter = TextPainter(
|
var textPainter = TextPainter(
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
textDirection: TextDirection.ltr,
|
textDirection: TextDirection.ltr,
|
||||||
@ -375,7 +368,7 @@ class AddToPlaylistPainter extends CustomPainter {
|
|||||||
fontStyle: FontStyle.italic, color: textColor, fontSize: 10),
|
fontStyle: FontStyle.italic, color: textColor, fontSize: 10),
|
||||||
))
|
))
|
||||||
..layout();
|
..layout();
|
||||||
textPainter.paint(canvas, Offset(size.width * 4 / 7, size.height / 3));
|
textPainter.paint(canvas, Offset(size.width * 4 / 7, size.height * 3 / 5));
|
||||||
canvas.drawPath(_path, _paint);
|
canvas.drawPath(_path, _paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user