1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-18 12:15:27 +00:00

Change the way margin is used. This slightly improves quality.

This commit is contained in:
Filippo Scognamiglio 2018-12-17 19:09:19 +01:00
parent 4268d4d770
commit 06afe507f6

View File

@ -71,11 +71,11 @@ Item{
id: kterminal
property int margin: appSettings.margin / screenScaling
property int totalWidth: 2 * margin + width
property int totalHeight: 2 * margin + height
property int totalWidth: Math.floor(parent.width / (screenScaling * fontWidth))
property int totalHeight: Math.floor(parent.height / screenScaling)
width: Math.floor(parent.width / (screenScaling * fontWidth))
height: Math.floor(parent.height / screenScaling)
width: totalWidth - 2 * margin
height: totalHeight - 2 * margin
colorScheme: "cool-retro-term"