quick fix

This commit is contained in:
Guy Sandler 2026-05-25 18:33:10 -07:00
parent 61ef8e163c
commit be3bc0a428
5 changed files with 12 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"Canvas Refined": {
"Canvas_Refined": {
"message": "Canvas Refined"
},
"updates": {

View File

@ -23,7 +23,7 @@
<div class="main">
<div class="header">
<img id="bclogo" src="../icon/icon-128.png">
<h1 data-i18n="Canvas Refined">Canvas Refined</h1>
<h1 data-i18n="Canvas_Refined">Canvas Refined</h1>
</div>
<div class="more-options-container">
<button id="customize-dark-btn" class="big-button tab-btn">
@ -232,6 +232,10 @@
<input type="checkbox" id="todo_progress_rings" name="todo_progress_rings">
<label for="todo_progress_rings" class="sub-text">Show progress rings</label>
</div>
<div class="sub-option">
<input type="checkbox" id="todo_confetti" name="todo_confetti">
<label for="todo_confetti" class="sub-text">Show confetti on complete</label>
</div>
<div style="margin-top: 5px">
<span class="sub-text" data-i18n="max_items">Max items to show: </span><span
id="numTodoItems"></span>

View File

@ -2120,6 +2120,8 @@ function populateAnnouncements() {
function createConfettiBurst(targetElement, opts = {}) {
try {
if (options.todo_confetti === false) return;
const count = opts.count || 48;
const colors = opts.colors || ['#ff4d4f', '#ffc107', '#28a745', '#17a2b8', '#6f42c1', '#ff6b6b', '#ff8a65', '#ffd54f'];
const rect = targetElement.getBoundingClientRect();

View File

@ -2,6 +2,7 @@ const syncedSwitches = ['remind', 'tab_icons', 'hide_feedback', 'dark_mode', 're
const syncedSubOptions = [
"todo_hide_feedback",
"todo_full_height",
"todo_confetti",
"device_dark",
"relative_dues",
"card_overdues",
@ -113,6 +114,7 @@ const defaultOptions = {
"todo_hide_feedback": false,
"todo_full_height": false,
"todo_progress_rings": true,
"todo_confetti": true,
"device_dark": false,
"cumulative_gpa": { "name": "Cumulative GPA", "hidden": false, "weight": "dnc", "credits": 999, "gr": 3.21 },
// "show_updates": false,
@ -305,6 +307,7 @@ function setup() {
// /*'card_method_date',*/ "show_updates",
"todo_hide_feedback",
"todo_progress_rings",
"todo_confetti",
"todo_full_height",
"device_dark",
"relative_dues",

View File

@ -1,6 +1,6 @@
{
"manifest_version": 3,
"name": "Canvas Refined",
"name": "CanvasRefined",
"description": "Even More Feature packed extension for Canvas.",
"version": "5.12.6",
"icons": {