image quality
This commit is contained in:
parent
d9cbd4230a
commit
ae79afaf0d
@ -21,6 +21,7 @@ class MyTheme {
|
|||||||
static const Color accent = Color(0xFF0071FF);
|
static const Color accent = Color(0xFF0071FF);
|
||||||
static const Color accent50 = Color(0x770071FF);
|
static const Color accent50 = Color(0x770071FF);
|
||||||
static const Color canvasColor = Color(0xFF212121);
|
static const Color canvasColor = Color(0xFF212121);
|
||||||
|
static const Color border = Color(0xFFCCCCCC);
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/huangjianke/flutter_easyloading
|
// https://github.com/huangjianke/flutter_easyloading
|
||||||
|
@ -202,16 +202,15 @@ void enterPasswordDialog(String id, BuildContext context) {
|
|||||||
labelText: 'Password',
|
labelText: 'Password',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ListTile(
|
CheckboxListTile(
|
||||||
|
controlAffinity: ListTileControlAffinity.leading,
|
||||||
title: Text(
|
title: Text(
|
||||||
'Remember the password',
|
'Remember the password',
|
||||||
),
|
),
|
||||||
leading: Checkbox(
|
value: remember,
|
||||||
value: remember,
|
onChanged: (v) {
|
||||||
onChanged: (v) {
|
setState(() => remember = v);
|
||||||
setState(() => remember = v);
|
},
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
[
|
[
|
||||||
@ -267,11 +266,50 @@ void showOptions(String id, BuildContext context) {
|
|||||||
FFI.getByName('toggle_option', 'show-remote-cursor') == 'true';
|
FFI.getByName('toggle_option', 'show-remote-cursor') == 'true';
|
||||||
var lockAfterSessionEnd =
|
var lockAfterSessionEnd =
|
||||||
FFI.getByName('toggle_option', 'lock-after-session-end') == 'true';
|
FFI.getByName('toggle_option', 'lock-after-session-end') == 'true';
|
||||||
|
String quality = FFI.getByName('image_quality');
|
||||||
|
if (quality == '') quality = 'balanced';
|
||||||
showAlertDialog(
|
showAlertDialog(
|
||||||
context,
|
context,
|
||||||
(setState) => Tuple3(
|
(setState) => Tuple3(
|
||||||
null,
|
null,
|
||||||
Column(mainAxisSize: MainAxisSize.min, children: [
|
Column(mainAxisSize: MainAxisSize.min, children: [
|
||||||
|
RadioListTile<String>(
|
||||||
|
controlAffinity: ListTileControlAffinity.trailing,
|
||||||
|
title: const Text('Good image quality'),
|
||||||
|
value: 'best',
|
||||||
|
groupValue: quality,
|
||||||
|
onChanged: (String value) {
|
||||||
|
setState(() {
|
||||||
|
quality = value;
|
||||||
|
FFI.setByName('image_quality', value);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
RadioListTile<String>(
|
||||||
|
controlAffinity: ListTileControlAffinity.trailing,
|
||||||
|
title: const Text('Balanced'),
|
||||||
|
value: 'balanced',
|
||||||
|
groupValue: quality,
|
||||||
|
onChanged: (String value) {
|
||||||
|
setState(() {
|
||||||
|
quality = value;
|
||||||
|
FFI.setByName('image_quality', value);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
RadioListTile<String>(
|
||||||
|
controlAffinity: ListTileControlAffinity.trailing,
|
||||||
|
title: const Text('Optimize reaction time'),
|
||||||
|
value: 'low',
|
||||||
|
groupValue: quality,
|
||||||
|
onChanged: (String value) {
|
||||||
|
setState(() {
|
||||||
|
quality = value;
|
||||||
|
FFI.setByName('image_quality', value);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
Divider(color: MyTheme.border),
|
||||||
CheckboxListTile(
|
CheckboxListTile(
|
||||||
value: showRemoteCursor,
|
value: showRemoteCursor,
|
||||||
onChanged: (v) {
|
onChanged: (v) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user