Added scrollbar.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user