mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 20:20:45 +00:00
Added scrollbar.
This commit is contained in:
parent
28bb2e2adf
commit
b3a4b7158e
@ -87,7 +87,7 @@ Item{
|
||||
|
||||
property int rasterization: no_rasterization
|
||||
|
||||
property int scanline_quality: 3
|
||||
property int scanline_quality: 2
|
||||
onScanline_qualityChanged: handleFontChanged();
|
||||
|
||||
ListModel{
|
||||
|
@ -104,6 +104,7 @@ Item{
|
||||
colorScheme: "cool-retro-term"
|
||||
|
||||
smooth: false
|
||||
enableBold: false
|
||||
|
||||
session: QMLTermSession {
|
||||
id: ksession
|
||||
@ -113,8 +114,20 @@ Item{
|
||||
}
|
||||
}
|
||||
|
||||
QMLTermScrollbar {
|
||||
terminal: kterminal
|
||||
anchors.margins: width * 0.5
|
||||
width: terminal.fontMetrics.width * 0.75
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "white"
|
||||
radius: width * 0.25
|
||||
opacity: 0.7
|
||||
}
|
||||
onOpacityChanged: restartBlurredSource();
|
||||
}
|
||||
|
||||
FontLoader{ id: fontLoader }
|
||||
Text{id: fontMetrics; text: "B"; visible: false}
|
||||
|
||||
function handleFontChange(fontSource, pixelSize, lineSpacing, screenScaling){
|
||||
fontLoader.source = fontSource;
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit deed80c2d3a747c8094f734a6aff06f56f97f42b
|
||||
Subproject commit 8389dd078b8acc37a1a7da07c9845942afbdc1f5
|
Loading…
x
Reference in New Issue
Block a user