mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-11-01 23:52:06 +00:00
Added scrollbar.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Submodule qmltermwidget updated: deed80c2d3...8389dd078b
Reference in New Issue
Block a user