<commit_before>import QtQuick			2.11
import QtQuick.Controls	2.4


Item
{

	Rectangle
	{
		color:			jaspTheme.darkeningColour
		opacity:		parent.visible ? 0.5 : 0.0
		anchors.fill:	parent
		Behavior on opacity	{ enabled: preferencesModel.animationsOn; PropertyAnimation { duration: 100 } }
	}

	MouseArea
	{
		anchors.fill:	parent
		hoverEnabled:	true
	}

	Rectangle
	{
		id:					progressBarHolder
		color:				jaspTheme.uiBackground
		border.color:		jaspTheme.uiBorder
		border.width:		1
		height:				120 * preferencesModel.uiScale
		radius:				height
		width:				parent.width * 0.5
		anchors.centerIn:	parent

		Text
		{
			id:						loadingText
			horizontalAlignment:	Text.AlignHCenter
			text:					mainWindow.progressBarStatus
			font:					jaspTheme.fontLabel
			color:					jaspTheme.textEnabled
			elide:					Text.ElideMiddle

			anchors
			{
				top:			parent.top
				left:			parent.left
				right:			parent.right
				topMargin:		16 * preferencesModel.uiScale
				leftMargin:		height / 2
				rightMargin:	height / 2
			}<commit_msg>Also resize progressbarholder - Fixes https://github.com/jasp-stats/INTERNAL-jasp/issues/1082 completely<commit_after>import QtQuick			2.11
import QtQuick.Controls	2.4


Item
{

	Rectangle
	{
		color:			jaspTheme.darkeningColour
		opacity:		parent.visible ? 0.5 : 0.0
		anchors.fill:	parent
		Behavior on opacity	{ enabled: preferencesModel.animationsOn; PropertyAnimation { duration: 100 } }
	}

	MouseArea
	{
		anchors.fill:	parent
		hoverEnabled:	true
	}

	Rectangle
	{
		id:					progressBarHolder
		color:				jaspTheme.uiBackground
		border.color:		jaspTheme.uiBorder
		border.width:		1
		height:				120 * preferencesModel.uiScale
		radius:				height
		width:				Math.min(Math.max(loadingText.implicitWidth + height, parent.width * 0.5), parent.width - height)
		anchors.centerIn:	parent

		Text
		{
			id:						loadingText
			horizontalAlignment:	Text.AlignHCenter
			text:					mainWindow.progressBarStatus
			font:					jaspTheme.fontLabel
			color:					jaspTheme.textEnabled
			elide:					Text.ElideMiddle

			anchors
			{
				top:			parent.top
				left:			parent.left
				right:			parent.right
				topMargin:		16 * preferencesModel.uiScale
				leftMargin:		height / 2
				rightMargin:	height / 2
			}
{'fraction_non_alphanumeric': 0.07976827094474154, 'fraction_numerical': 0.0213903743315508, 'mean_word_length': 2.884083044982699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2136959', 'n_tokens_mistral': 1000, 'n_tokens_neox': 794, 'n_words': 163}