flutter_desktop: custom image quality ui
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
5a8fc529ed
commit
2dc8c02d15
@ -276,7 +276,7 @@ class _PeerCardState extends State<_PeerCard>
|
|||||||
color: _iconMoreHover.value
|
color: _iconMoreHover.value
|
||||||
? MyTheme.color(context).text
|
? MyTheme.color(context).text
|
||||||
: MyTheme.color(context).lightText),
|
: MyTheme.color(context).lightText),
|
||||||
position: mod_menu.PopupMenuPosition.under,
|
position: mod_menu.PopupMenuPosition.over,
|
||||||
itemBuilder: (BuildContext context) => snapshot.data!,
|
itemBuilder: (BuildContext context) => snapshot.data!,
|
||||||
))));
|
))));
|
||||||
} else {
|
} else {
|
||||||
|
@ -489,17 +489,24 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
|
|||||||
final slider = Obx(() {
|
final slider = Obx(() {
|
||||||
return Slider(
|
return Slider(
|
||||||
value: sliderValue.value,
|
value: sliderValue.value,
|
||||||
max: 100,
|
min: 10.0,
|
||||||
divisions: 100,
|
max: 100.0,
|
||||||
label: sliderValue.value.round().toString(),
|
divisions: 90,
|
||||||
|
// label: sliderValue.value.round().toString(),
|
||||||
onChanged: (double value) {
|
onChanged: (double value) {
|
||||||
sliderValue.value = value;
|
sliderValue.value = value;
|
||||||
rxReplay.add(value);
|
rxReplay.add(value);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
final content = Row(
|
||||||
|
children: [
|
||||||
|
slider,
|
||||||
|
Obx(() => Text('${sliderValue.value.round()}% Bitrate'))
|
||||||
|
],
|
||||||
|
);
|
||||||
msgBoxCommon(widget.ffi.dialogManager, 'Custom Image Quality',
|
msgBoxCommon(widget.ffi.dialogManager, 'Custom Image Quality',
|
||||||
slider, [btnCancel]);
|
content, [btnCancel]);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
MenuEntryDivider<String>(),
|
MenuEntryDivider<String>(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user