settings: Allow to set Point style and Point width
Point style only supports None and Solid, not supports Hollow yet.
This commit is contained in:
parent
fb639a1e4c
commit
c6ab8791da
|
@ -56,6 +56,8 @@ class Config {
|
|||
static bool isHistoryNavigationToolbarShown = false;
|
||||
static double boardBorderLineWidth = 2.0;
|
||||
static double boardInnerLineWidth = 2.0;
|
||||
static int pointStyle = 0;
|
||||
static double pointWidth = 10.0;
|
||||
static double pieceWidth = 0.9;
|
||||
static double fontSize = 16.0;
|
||||
static double boardTop = isLargeScreen() ? 75.0 : 36.0;
|
||||
|
@ -140,6 +142,8 @@ class Config {
|
|||
settings['IsHistoryNavigationToolbarShown'] ?? false;
|
||||
Config.boardBorderLineWidth = settings['BoardBorderLineWidth'] ?? 2;
|
||||
Config.boardInnerLineWidth = settings['BoardInnerLineWidth'] ?? 2;
|
||||
Config.pointStyle = settings['PointStyle'] ?? 0;
|
||||
Config.pointWidth = settings['PointWidth'] ?? 10.0;
|
||||
Config.pieceWidth = settings['PieceWidth'] ?? 0.9;
|
||||
Config.fontSize = settings['FontSize'] ?? 16.0;
|
||||
Config.boardTop = settings['BoardTop'] ?? (isLargeScreen() ? 75 : 36);
|
||||
|
@ -252,6 +256,8 @@ class Config {
|
|||
Config.isHistoryNavigationToolbarShown;
|
||||
settings['BoardBorderLineWidth'] = Config.boardBorderLineWidth;
|
||||
settings['BoardInnerLineWidth'] = Config.boardInnerLineWidth;
|
||||
settings['PointStyle'] = Config.pointStyle;
|
||||
settings['PointWidth'] = Config.pointWidth;
|
||||
settings['PieceWidth'] = Config.pieceWidth;
|
||||
settings['FontSize'] = Config.fontSize;
|
||||
settings['BoardTop'] = Config.boardTop;
|
||||
|
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -1232,5 +1232,25 @@
|
|||
"continueToMakeMove": "Mill! Continue to make a move.",
|
||||
"@continueToMakeMove": {
|
||||
"description": "Mill! Continue to make a move."
|
||||
},
|
||||
"pointStyle": "Point style",
|
||||
"@pointStyle": {
|
||||
"description": "Point style"
|
||||
},
|
||||
"pointWidth": "Point width",
|
||||
"@pointWidth": {
|
||||
"description": "Point width"
|
||||
},
|
||||
"none": "None",
|
||||
"@none": {
|
||||
"description": "None"
|
||||
},
|
||||
"solid": "Solid",
|
||||
"@solid": {
|
||||
"description": "Solid"
|
||||
},
|
||||
"hollow": "Hollow",
|
||||
"@hollow": {
|
||||
"description": "Hollow"
|
||||
}
|
||||
}
|
|
@ -219,41 +219,48 @@ class BoardPainter extends PiecesBasePainter {
|
|||
);
|
||||
|
||||
// Point
|
||||
paint.style = PaintingStyle.fill;
|
||||
double pointRadius = 10.0;
|
||||
if (Config.pointStyle != 0) {
|
||||
if (Config.pointStyle == 1) {
|
||||
paint.style = PaintingStyle.fill;
|
||||
} else if (Config.pointStyle == 2) {
|
||||
paint.style = PaintingStyle.stroke; // TODO: WIP
|
||||
}
|
||||
|
||||
var points = [
|
||||
[0, 0],
|
||||
[0, 3],
|
||||
[0, 6],
|
||||
[1, 1],
|
||||
[1, 3],
|
||||
[1, 5],
|
||||
[2, 2],
|
||||
[2, 3],
|
||||
[2, 4],
|
||||
[3, 0],
|
||||
[3, 1],
|
||||
[3, 2],
|
||||
[3, 4],
|
||||
[3, 5],
|
||||
[3, 6],
|
||||
[4, 2],
|
||||
[4, 3],
|
||||
[4, 4],
|
||||
[5, 1],
|
||||
[5, 3],
|
||||
[5, 5],
|
||||
[6, 0],
|
||||
[6, 3],
|
||||
[6, 6],
|
||||
];
|
||||
double pointRadius = Config.pointWidth;
|
||||
|
||||
points.forEach((point) => canvas.drawCircle(
|
||||
Offset(left + squareWidth * point[0], top + squareWidth * point[1]),
|
||||
pointRadius,
|
||||
paint,
|
||||
));
|
||||
var points = [
|
||||
[0, 0],
|
||||
[0, 3],
|
||||
[0, 6],
|
||||
[1, 1],
|
||||
[1, 3],
|
||||
[1, 5],
|
||||
[2, 2],
|
||||
[2, 3],
|
||||
[2, 4],
|
||||
[3, 0],
|
||||
[3, 1],
|
||||
[3, 2],
|
||||
[3, 4],
|
||||
[3, 5],
|
||||
[3, 6],
|
||||
[4, 2],
|
||||
[4, 3],
|
||||
[4, 4],
|
||||
[5, 1],
|
||||
[5, 3],
|
||||
[5, 5],
|
||||
[6, 0],
|
||||
[6, 3],
|
||||
[6, 6],
|
||||
];
|
||||
|
||||
points.forEach((point) => canvas.drawCircle(
|
||||
Offset(left + squareWidth * point[0], top + squareWidth * point[1]),
|
||||
pointRadius,
|
||||
paint,
|
||||
));
|
||||
}
|
||||
|
||||
if (!Config.hasDiagonalLines) {
|
||||
return;
|
||||
|
|
|
@ -38,6 +38,8 @@ class PiecesPainter extends PiecesBasePainter {
|
|||
final animationValue;
|
||||
|
||||
// TODO: null-safety
|
||||
int? pointStyle = 0;
|
||||
double? pointWidth = 10.0;
|
||||
double? pieceWidth = 0.0;
|
||||
double? animatedPieceWidth = 0.0;
|
||||
|
||||
|
@ -48,6 +50,8 @@ class PiecesPainter extends PiecesBasePainter {
|
|||
this.blurIndex = invalidIndex,
|
||||
required this.animationValue,
|
||||
}) : super(width: width) {
|
||||
pointStyle = Config.pointStyle;
|
||||
pointWidth = Config.pointWidth;
|
||||
pieceWidth = squareWidth * Config.pieceWidth;
|
||||
animatedPieceWidth = squareWidth * Config.pieceWidth * animationValue;
|
||||
}
|
||||
|
@ -60,6 +64,8 @@ class PiecesPainter extends PiecesBasePainter {
|
|||
position: position,
|
||||
gridWidth: gridWidth,
|
||||
squareWidth: squareWidth,
|
||||
pointStyle: pointStyle,
|
||||
pointWidth: pointWidth,
|
||||
pieceWidth: pieceWidth,
|
||||
animatedPieceWidth: animatedPieceWidth,
|
||||
offsetX: AppTheme.boardPadding + squareWidth / 2,
|
||||
|
@ -80,6 +86,8 @@ class PiecesPainter extends PiecesBasePainter {
|
|||
Position? position,
|
||||
double? gridWidth,
|
||||
double? squareWidth,
|
||||
int? pointStyle,
|
||||
double? pointWidth,
|
||||
double? pieceWidth,
|
||||
double? animatedPieceWidth,
|
||||
double? offsetX,
|
||||
|
|
|
@ -230,6 +230,92 @@ class _PersonalizationSettingsPageState
|
|||
);
|
||||
}
|
||||
|
||||
setPointStyle() {
|
||||
callback(int? pointStyle) async {
|
||||
Navigator.of(context).pop();
|
||||
|
||||
setState(() {
|
||||
Config.pointStyle = pointStyle ?? 0;
|
||||
});
|
||||
|
||||
print("[config] pointStyle: $pointStyle");
|
||||
|
||||
Config.save();
|
||||
}
|
||||
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
builder: (BuildContext context) => Semantics(
|
||||
label: S.of(context).pointStyle,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
RadioListTile(
|
||||
activeColor: AppTheme.switchListTileActiveColor,
|
||||
title: Text(S.of(context).none),
|
||||
groupValue: Config.pointStyle,
|
||||
value: 0,
|
||||
onChanged: callback,
|
||||
),
|
||||
ListItemDivider(),
|
||||
RadioListTile(
|
||||
activeColor: AppTheme.switchListTileActiveColor,
|
||||
title: Text(S.of(context).solid),
|
||||
groupValue: Config.pointStyle,
|
||||
value: 1,
|
||||
onChanged: callback,
|
||||
),
|
||||
ListItemDivider(),
|
||||
/*
|
||||
RadioListTile(
|
||||
activeColor: AppTheme.switchListTileActiveColor,
|
||||
title: Text(S.of(context).hollow),
|
||||
groupValue: Config.pointStyle,
|
||||
value: 2,
|
||||
onChanged: callback,
|
||||
),
|
||||
ListItemDivider(),
|
||||
*/
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
SliderTheme _pointWidthSliderTheme(context, setState) {
|
||||
return SliderTheme(
|
||||
data: AppTheme.sliderThemeData,
|
||||
child: Semantics(
|
||||
label: S.of(context).pointWidth,
|
||||
child: Slider(
|
||||
value: Config.pointWidth.toDouble(),
|
||||
min: 0,
|
||||
max: 30.0,
|
||||
divisions: 30,
|
||||
label: Config.pointWidth.toStringAsFixed(1),
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
print("[config] pointWidth value: $value");
|
||||
Config.pointWidth = value;
|
||||
Config.save();
|
||||
});
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
setPointWidth() async {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
builder: (BuildContext context) => StatefulBuilder(
|
||||
builder: (context, setState) {
|
||||
return _pointWidthSliderTheme(context, setState);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
SliderTheme _pieceWidthSliderTheme(context, setState) {
|
||||
return SliderTheme(
|
||||
data: AppTheme.sliderThemeData,
|
||||
|
@ -448,6 +534,18 @@ class _PersonalizationSettingsPageState
|
|||
onTap: setBoardInnerLineWidth,
|
||||
),
|
||||
ListItemDivider(),
|
||||
SettingsListTile(
|
||||
context: context,
|
||||
titleString: S.of(context).pointStyle,
|
||||
onTap: setPointStyle,
|
||||
),
|
||||
ListItemDivider(),
|
||||
SettingsListTile(
|
||||
context: context,
|
||||
titleString: S.of(context).pointWidth,
|
||||
onTap: setPointWidth,
|
||||
),
|
||||
ListItemDivider(),
|
||||
SettingsListTile(
|
||||
context: context,
|
||||
titleString: S.of(context).pieceWidth,
|
||||
|
|
Loading…
Reference in New Issue