jiangtian616 / JHenTai

A cross-platform manga app made for e-hentai & exhentai by Flutter
Apache License 2.0
2.73k stars 70 forks source link

windows版本,全屏之后再退出全屏模式,窗口大小会被重置 #480

Open yeezylife opened 1 month ago

yeezylife commented 1 month ago

复现步骤 / Step to reproduce

1.以非全屏模式,窗口最大化打开软件。 此时状态为图1: 11

2.系统的任务栏有点碍事,全屏显示区域大一点,按F11进入全屏,此时状态为图2: 22

3.想要在全屏模式下离开软件,不想左手操作win+d或者alt+tab,右上角没有可点击的最小化按钮,于是按F11退出全屏 ,此时窗口大小被重置,复现率百分之百: 33

预期行为 / Expected behaviour

退出全屏后,窗口应该保持进入全屏前的大小。

实际行为 / Actual Behaviour

退出全屏后,窗口变成了一个固定的,被重置的大小

应用日志 / App logs

🐛 Init LogService success 🐛 Init LocalConfigService success 🐛 Init NetworkSetting config success 🐛 Init UserSetting config success 🐛 Init EHSetting config success 🐛 Init PathService success 💡 systemProxyAddress: 127.0.0.1:7890 🐛 Init EHRequest success 🐛 Init JHRequest success 🐛 Init StorageService success 🐛 Init DownloadSetting config success 🐛 Init SuperResolutionSetting config success with default 🐛 Init LocalBlockRuleService success 🐛 Init FavoriteSetting config success 🐛 Init AdvancedSetting config success 🐛 Init MouseSetting config success with default 🐛 Init PreferenceSetting config success 🐛 Init PerformanceSetting config success with default 🐛 Init ReadSetting config success 🐛 Init SecuritySetting config success with default 🐛 Init SiteSetting config success 🐛 Init StyleSetting config success with default 🐛 AppUpdateService fromVersion: 12, toVersion: 12 🐛 Init AppUpdateService success 🐛 init Gallery groups: [] 🐛 Gallery download task count: 0 🐛 start download executor 🐛 Init GalleryDownloadService success 🐛 init Archive groups: [] 🐛 Archive download tasks count: 0 🐛 Init ArchiveDownloadService success 💡 Refresh local gallerys, preCount:0, newCount: 0, timeCost: 0ms 🐛 Init LocalGalleryService success 🐛 Init CloudConfigService success 🐛 Init FrameRateService success 🐛 Init HistoryService success 🐛 Init IsolateService success 🐛 Init QuickSearchService config success with default 🐛 Init ScheduleService success 🐛 Init TagTranslationService success 🐛 Init SearchHistoryService config success 🐛 Init SuperResolutionService success 🐛 Init TagSearchOrderOptimizationService success 🐛 Init VolumeService success 💡 Init WindowService success 🐛 Init WindowService success 🐛 Init MyTagsSetting success 💡 PopularPageLogic get data, prevGid:null, nextGid:null 🐛 NetworkSetting afterBeanReady success 🐛 UserSetting afterBeanReady success 🐛 EHSetting afterBeanReady success 🐛 DownloadSetting afterBeanReady success 🐛 SuperResolutionSetting afterBeanReady success 💡 Fetch favorite setting from EH 🐛 FavoriteSetting afterBeanReady success 🐛 AdvancedSetting afterBeanReady success 🐛 MouseSetting afterBeanReady success 🐛 PreferenceSetting afterBeanReady success 🐛 PerformanceSetting afterBeanReady success 🐛 ReadSetting afterBeanReady success 🐛 SecuritySetting afterBeanReady success 💡 Fetch site setting from EX 🐛 SiteSetting afterBeanReady success 🐛 StyleSetting afterBeanReady success 🐛 QuickSearchService afterBeanReady success 💡 Fetch tag translation data from github 🐛 SearchHistoryService afterBeanReady success 💡 refresh MyTagsSetting 💡 Maximized window 💡 Tag translation data downloaded 💡 Tag translation data is up to date, timestamp: 2024-07-31T12:14:20.000Z 💡 refresh default tag set success, length: 6 💡 Fetch site setting from EX success 💡 Fetch favorite setting from EH success 💡 Clear outdated image cache success, count: 0 🐛 App is hidden 🐛 App is shown 🐛 App is hidden 🐛 App is shown 💡 Restored window 💡 Enter full screen 🐛 App is hidden 🐛 App is shown 💡 Leave full screen 🐛 App is hidden 🐛 App is shown 🐛 App is hidden

应用设置 / App Settings

No response

备注 / Addition details

No response

JHenTai 版本号 / JHenTai version

目前用的最新v8.0.0+248,但是自从有全屏功能之后,我一直是这种体验。。一直能复现

操作系统版本 / operating system version

windows11 x64稳定版

设备型号 / Device model

PC x64

自查步骤 / Verify steps

yeezylife commented 1 month ago

@yeezylife 相关讨论可以新建issue。

再按F11退出全屏模式,窗口大小会变成一个默认的比较小的大小

未复现

我这里复现率百分之百啊,目前全屏模式下,想要不用动左手按快捷键,想切到其他软件或者最小化真的挺折磨的,F11-窗口变小-点最大化复原-再点最小化。。。

全屏模式下,右上角可以保留最小化按钮就好了

那不就是最大化吗?

不是最大化吧,全屏模式下没有系统任务栏呀。全屏的时候也保留右上角的“最小化 关闭”按钮,可以让软件依然拥有鼠标点一下就最小化/退出的能力,鼠标流的福音

快捷键

之后会给f9和f10绑定上最小化和最大化。

这个问题的根源之一,就是不想(左手)按快捷键,所以快捷键尽量靠右比较好,可能F12最小化好一点,F9有点靠左 F10在中间不好点。。能自定义是最棒啦

jiangtian616 commented 1 month ago

1、 QQ_1722521112864

2、全屏模式就是指没有顶部底部区域的模式,目前也没有计划单独给全屏模式加上顶部按钮。

yeezylife commented 1 month ago

1、 QQ_1722521112864

没太理解什么第三方插件需要还原窗口,不过现在这样确实不太人性化,也和其他软件不太一样。随便拿点软件按F11之后再按F11退出,窗口大小肯定不变的 比如chrome。。

2、全屏模式就是指没有顶部底部区域的模式,目前也没有计划单独给全屏模式加上顶部按钮。

这个完全可以理解,有了比较靠右边最好可自定义的最小化快捷键之后这个应该不是问题。只是鼠标流全屏的时候,chrome和windows的UWP,鼠标移过去的时候还是都有这个按钮的,可能一开始不太习惯

jiangtian616 commented 1 month ago

是提供最大化/最小化/全屏这个功能的插件有bug,做不到在最大化的情况下全屏。