mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-31 10:11:20 +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 rasterization: no_rasterization
|
||||||
|
|
||||||
property int scanline_quality: 3
|
property int scanline_quality: 2
|
||||||
onScanline_qualityChanged: handleFontChanged();
|
onScanline_qualityChanged: handleFontChanged();
|
||||||
|
|
||||||
ListModel{
|
ListModel{
|
||||||
|
@ -104,6 +104,7 @@ Item{
|
|||||||
colorScheme: "cool-retro-term"
|
colorScheme: "cool-retro-term"
|
||||||
|
|
||||||
smooth: false
|
smooth: false
|
||||||
|
enableBold: false
|
||||||
|
|
||||||
session: QMLTermSession {
|
session: QMLTermSession {
|
||||||
id: ksession
|
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 }
|
FontLoader{ id: fontLoader }
|
||||||
Text{id: fontMetrics; text: "B"; visible: false}
|
|
||||||
|
|
||||||
function handleFontChange(fontSource, pixelSize, lineSpacing, screenScaling){
|
function handleFontChange(fontSource, pixelSize, lineSpacing, screenScaling){
|
||||||
fontLoader.source = fontSource;
|
fontLoader.source = fontSource;
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit deed80c2d3a747c8094f734a6aff06f56f97f42b
|
Subproject commit 8389dd078b8acc37a1a7da07c9845942afbdc1f5
|
Loading…
x
Reference in New Issue
Block a user