Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-spataru committed Nov 7, 2023
1 parent 49e9e1f commit 1c9a6ac
Show file tree
Hide file tree
Showing 12 changed files with 729 additions and 701 deletions.
8 changes: 4 additions & 4 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma

# Indent initializers by 3 spaces
ConstructorInitializerIndentWidth: 3
ConstructorInitializerIndentWidth: 4

# No indentation for namespaces.
NamespaceIndentation: None
Expand Down Expand Up @@ -82,13 +82,13 @@ IndentPPDirectives: AfterHash

AlignAfterOpenBracket: Align

AccessModifierOffset: -3
AccessModifierOffset: -4

IndentWidth: 3
IndentWidth: 4

#StatementMacros ['Q_OBJECT', 'Q_UNUSED']

ColumnLimit: 120
ColumnLimit: 90



2 changes: 1 addition & 1 deletion .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:
VERSION: "1.4.0"
EXECUTABLE: "HiDPI-Fixer"
APPLICATION: "HiDPI-Fixer"
UNIXNAME: "hdpi-fixer"
UNIXNAME: "hidpi-fixer"
QMAKE_PROJECT: "HiDPI-Fixer.pro"
PUBLISHER: "Alex Spataru"
QT_VERSION: 5.15.2
Expand Down
2 changes: 1 addition & 1 deletion HiDPI-Fixer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ MOC_DIR = moc
RCC_DIR = qrc
OBJECTS_DIR = obj

CONFIG += c++11
CONFIG += c++17

#-------------------------------------------------------------------------------
# Import source code
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@

# HiDPI Fixer

[![Build Status (Travis CI)](https://api.travis-ci.org/alex-spataru/HiDPI-Fixer.svg?branch=master)](https://travis-ci.org/alex-spataru/HiDPI-Fixer)
[![Build Status (GitHub Actions)](https://github.com/alex-spataru/HiDPI-Fixer/workflows/Build/badge.svg)](https://github.com/alex-spataru/HiDPI-Fixer/actions/)
[![Github All Releases](https://img.shields.io/github/downloads/alex-spataru/HiDPI-Fixer/total.svg)](https://github.com/alex-spataru/HiDPI-Fixer/releases/)

This application allows you to create a script that acomplishes the following tasks:
- Allow fractional scaling of your display and its components in X11
- The end result looks nicer and is way less buggy than using Wayland
- The generated script is configured to run everytime you log in
- You can also instruct the application to modify the `~/.profile` file to correctly scale Qt-based apps (as KDE does)
- Tested on GNOME, Deepin Desktop and KDE (you need to manualy set the scaling factor to 200% in Deepin and KDE)
This application allows you to create a script that accomplishes the following tasks:
- Allow fractional scaling of your display and its components in X11.
- The end result looks nicer and is way less buggy than using Wayland.
- The generated script is configured to run every time you log in.
- You can also instruct the application to modify the `~/.profile` file to scale Qt-based apps, use with caution.
- Tested on GNOME, Deepin Desktop and KDE (you need to manually set the scaling factor to 200% in Deepin and KDE).

## Screenshot

![Screenshot of HiDPI-Fixer running under Manjaro Deepin](etc/screenshot.png)
![Screenshot of HiDPI-Fixer](etc/screenshot.png)

**Note:** sorry for the screenshot on Wayland. I haven't really used this tool lately, but I felt the need of updating this repo after 2 years...

## Installing/running

Expand Down
Binary file modified etc/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/Global.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ static const QString SCRIPTS_HOME = QString("%1/.hidpi-fixer").arg(QDir::homePat
* Defines the file location and name pattern for startup scripts
*/
static const QString AUTOSTART_PATTERN = "HiDPI-Fixer_";
static const QString AUTOSTART_LOCATION = QString("%1/.config/autostart").arg(QDir::homePath());
static const QString AUTOSTART_LOCATION
= QString("%1/.config/autostart").arg(QDir::homePath());

#endif
Loading

0 comments on commit 1c9a6ac

Please sign in to comment.