mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Arrows in transferlistfilterswidget too huge on macOS #8738
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#8738
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kolcha on GitHub (May 26, 2019).
qBittorrent version and Operating System
qBittorrent 4.2.0alpha , master branch, commit
c5430030e3macOS Mojave 10.14.5
If on linux, libtorrent and Qt version
libtorrent 1.2.1 , built from RC_1_2 branch
Qt 5.14.0 , built from dev branch
What is the problem
Arrows appeared in https://github.com/qbittorrent/qBittorrent/pull/10684 looks too huge on Retina display on macOS

What is the expected behavior
Arrows looks like there https://github.com/qbittorrent/qBittorrent/pull/10684#issue-281169676
Steps to reproduce
build qBittorrent from master branch and run on macOS system with Retina display
Extra info(if any)
it is very possible that I can fix it myself and post pull request, if developers don't have suitable dev/test environment. I have enough knowledge and suitable environment to do that.
@Chocobo1 commented on GitHub (May 26, 2019):
In my environment, the arrow looks small on Linux (cinnamon DE) but just right on Windows... this could be complicated.
@Chocobo1 commented on GitHub (May 26, 2019):
Offtopic, btw you might be interested that there are some deprecated warnings I wished to get rid of but lack of equipment & knowledge:
https://travis-ci.org/qbittorrent/qBittorrent/jobs/537524506#L1012-L1048
just FYI
@Kolcha commented on GitHub (May 27, 2019):
so... I made some investigations. Just created small test app with your custom control to debug it easily. There are some results below.
First of all, this is not your (qBittorrent dev team) issue, this is Qt issue. The "root of this evil" inside Qt's mac style implementation. It just draws that arrows in this way.
As solution I can suggest draw this arrows in Fusion style on macOS, in this case they will look very similar to Windows (I checked how it looks on Windows and it's fine).
there are 2 screenshots below demonstrating how this control looks in Fusion style but drawn in slightly different ways: on the first one
indicatorOption.rectwas got from Fusion style, on the second - from mac style. red frame shows the area for the arrow (indicatorOption.rect).I think the second option looks better comparing to unmodified checkboxes.
If devs agree with such solution I'll send pull request with this small change.
@Kolcha commented on GitHub (May 27, 2019):
@Chocobo1 I will look into it. But not guarantee that I fix it, I'm not "Pro macOS developer", I'm experienced c++ developer which have mac hardware and don't afraid to dig deep in huge libraries like Qt :)
@Chocobo1 commented on GitHub (May 27, 2019):
@Kolcha
Thanks for pointing the Qt source! I finally get the below code to work. It should be more ideal than the current way.
Could you please test it on macOS?
If the above code is still bad, I think you can submit a PR and we can all test it :)
Also loop @jagannatharjun in.
@Kolcha commented on GitHub (May 28, 2019):
@Chocobo1 , your code works perfectly on macOS! 👍 it gives similar result to Fusion style, but arrow has gray color, what I think looks even better, rather than black one.

@Chocobo1 commented on GitHub (May 28, 2019):
I've submitted PR #10720.