Use 16:9 format for all MFC thumbnails
This commit is contained in:
parent
967b5dec42
commit
159aacc8ff
|
@ -26,19 +26,16 @@ public class MyFreeCamsTabProvider extends TabProvider {
|
||||||
List<Tab> tabs = new ArrayList<>();
|
List<Tab> tabs = new ArrayList<>();
|
||||||
|
|
||||||
PaginatedScheduledService updateService = new OnlineCamsUpdateService();
|
PaginatedScheduledService updateService = new OnlineCamsUpdateService();
|
||||||
ThumbOverviewTab online = new ThumbOverviewTab("Online", updateService, myFreeCams);
|
tabs.add(createTab("Online", updateService));
|
||||||
online.setRecorder(recorder);
|
|
||||||
tabs.add(online);
|
|
||||||
|
|
||||||
friends = new MyFreeCamsFriendsTab(myFreeCams);
|
friends = new MyFreeCamsFriendsTab(myFreeCams);
|
||||||
friends.setRecorder(recorder);
|
friends.setRecorder(recorder);
|
||||||
|
friends.setImageAspectRatio(9.0 / 16.0);
|
||||||
|
friends.preserveAspectRatioProperty().set(false);
|
||||||
tabs.add(friends);
|
tabs.add(friends);
|
||||||
|
|
||||||
updateService = new HDCamsUpdateService();
|
updateService = new HDCamsUpdateService();
|
||||||
ThumbOverviewTab hd = createTab("HD", updateService);
|
tabs.add(createTab("HD", updateService));
|
||||||
hd.setImageAspectRatio(9.0 / 16.0);
|
|
||||||
hd.preserveAspectRatioProperty().set(false);
|
|
||||||
tabs.add(hd);
|
|
||||||
|
|
||||||
updateService = new PopularModelService();
|
updateService = new PopularModelService();
|
||||||
tabs.add(createTab("Most Popular", updateService));
|
tabs.add(createTab("Most Popular", updateService));
|
||||||
|
@ -54,6 +51,8 @@ public class MyFreeCamsTabProvider extends TabProvider {
|
||||||
|
|
||||||
private ThumbOverviewTab createTab(String title, PaginatedScheduledService updateService) {
|
private ThumbOverviewTab createTab(String title, PaginatedScheduledService updateService) {
|
||||||
ThumbOverviewTab tab = new ThumbOverviewTab(title, updateService, myFreeCams);
|
ThumbOverviewTab tab = new ThumbOverviewTab(title, updateService, myFreeCams);
|
||||||
|
tab.setImageAspectRatio(9.0 / 16.0);
|
||||||
|
tab.preserveAspectRatioProperty().set(false);
|
||||||
tab.setRecorder(recorder);
|
tab.setRecorder(recorder);
|
||||||
return tab;
|
return tab;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue