-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ScrollBarCornerFiller Windows specific
- Loading branch information
Showing
3 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
source/shared/ui/qml/app/graphia/Shared/Controls/+windows/ScrollBarCornerFiller.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* Copyright © 2013-2023 Graphia Technologies Ltd. | ||
* | ||
* This file is part of Graphia. | ||
* | ||
* Graphia is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Graphia is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Graphia. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import QtQuick | ||
import QtQuick.Controls | ||
|
||
Rectangle | ||
{ | ||
property ScrollBar horizontalScrollBar | ||
property ScrollBar verticalScrollBar | ||
|
||
width: verticalScrollBar && verticalScrollBar.size < 1 ? verticalScrollBar.width : 0 | ||
height: horizontalScrollBar && horizontalScrollBar.size < 1 ? horizontalScrollBar.height : 0 | ||
|
||
anchors.right: parent.right | ||
anchors.bottom: parent.bottom | ||
|
||
color: | ||
{ | ||
if(!horizontalScrollBar || !horizontalScrollBar.background) | ||
return "transparent"; | ||
|
||
if(!verticalScrollBar || !verticalScrollBar.background) | ||
return "transparent"; | ||
|
||
return palette.midlight; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters