Commit 224aac31 authored by Andreas Gärtner's avatar Andreas Gärtner

Task #15790: Changed speakers timer opacity to a higher value.

Also changed default minute setting to 3.
parent 13931360
......@@ -516,8 +516,10 @@ Ext.define('ARSnova.view.Question', {
this.countdownTimer = Ext.create('ARSnova.view.components.CountdownTimer', {
docked: 'top',
hidden: true,
viewOnly: true,
hidden: true
viewOnlyOpacity: ARSnova.app.userRole === ARSnova.app.USER_ROLE_SPEAKER ?
0.9 : 0.75
});
this.add([
......
......@@ -49,12 +49,13 @@ Ext.define('ARSnova.view.components.CountdownTimer', {
onTimerStop: Ext.emptyFn,
startStopScope: this,
defaultMinutes: 2,
defaultMinutes: 3,
defaultSeconds: 60,
sliderDefaultValue: 2,
sliderDefaultValue: 3,
sliderMinValue: 1,
sliderMaxValue: 10,
soundStartTimeSeconds: 30,
viewOnlyOpacity: 0.75,
showAnimation: {
type: "pop"
......@@ -93,12 +94,12 @@ Ext.define('ARSnova.view.components.CountdownTimer', {
position: 'absolute',
right: 0,
top: 0,
opacity: 0.75,
opacity: this.config.viewOnlyOpacity,
pointerEvents: 'none'
});
this.canvas.setStyle({
opacity: 0.75
opacity: this.config.viewOnlyOpacity
});
}
},
......
......@@ -299,6 +299,7 @@ Ext.define('ARSnova.view.speaker.QuestionStatisticChart', {
style: 'margin-top: 40px',
docked: 'top',
viewOnly: true,
viewOnlyOpacity: 1,
hidden: true
});
......
......@@ -53,7 +53,6 @@ Ext.define('ARSnova.view.speaker.RoundManagementPanel', {
});
this.countdownTimer = Ext.create('ARSnova.view.components.CountdownTimer', {
sliderDefaultValue: 2,
onTimerStart: this.onTimerStart,
onTimerStop: this.onTimerStop,
startStopScope: this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment