mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-07 13:41:27 +00:00
Change the way margin is used. This slightly improves quality.
This commit is contained in:
parent
4268d4d770
commit
06afe507f6
@ -71,11 +71,11 @@ Item{
|
|||||||
id: kterminal
|
id: kterminal
|
||||||
|
|
||||||
property int margin: appSettings.margin / screenScaling
|
property int margin: appSettings.margin / screenScaling
|
||||||
property int totalWidth: 2 * margin + width
|
property int totalWidth: Math.floor(parent.width / (screenScaling * fontWidth))
|
||||||
property int totalHeight: 2 * margin + height
|
property int totalHeight: Math.floor(parent.height / screenScaling)
|
||||||
|
|
||||||
width: Math.floor(parent.width / (screenScaling * fontWidth))
|
width: totalWidth - 2 * margin
|
||||||
height: Math.floor(parent.height / screenScaling)
|
height: totalHeight - 2 * margin
|
||||||
|
|
||||||
colorScheme: "cool-retro-term"
|
colorScheme: "cool-retro-term"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user