Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-111997.svg)](#build--distribution)
[![Electron](https://img.shields.io/badge/Electron-43-47848F.svg)](https://www.electronjs.org/)
[![Downloads](https://img.shields.io/github/downloads/CaYatur/SoundVisualizer/total?label=downloads)](https://github.com/CaYatur/SoundVisualizer/releases)
[![Tests](https://img.shields.io/badge/tests-2547%20passing-2ea043.svg)](#tests)
[![Tests](https://img.shields.io/badge/tests-2548%20passing-2ea043.svg)](#tests)
[![cayadev.com](https://img.shields.io/badge/cayadev.com-e11d2a.svg)](https://cayadev.com)

</div>
Expand Down Expand Up @@ -1341,7 +1341,7 @@ npm test
npm start -- --smoke
```

**2547 unit tests, all passing.** They are written to check answers, not to exercise lines:
**2548 unit tests, all passing.** They are written to check answers, not to exercise lines:

- **Formulas** are checked against values derived by hand from their definitions — Viviani's curve
staying on its sphere, the torus tube radius, Chladni's m↔n antisymmetry, every attractor
Expand Down
4 changes: 2 additions & 2 deletions README.tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-111997.svg)](#paketleme--dağıtım)
[![Electron](https://img.shields.io/badge/Electron-43-47848F.svg)](https://www.electronjs.org/)
[![İndirme](https://img.shields.io/github/downloads/CaYatur/SoundVisualizer/total?label=indirme)](https://github.com/CaYatur/SoundVisualizer/releases)
[![Test](https://img.shields.io/badge/test-2547%20geçiyor-2ea043.svg)](#testler)
[![Test](https://img.shields.io/badge/test-2548%20geçiyor-2ea043.svg)](#testler)
[![cayadev.com](https://img.shields.io/badge/cayadev.com-e11d2a.svg)](https://cayadev.com)

</div>
Expand Down Expand Up @@ -1341,7 +1341,7 @@ npm test
npm start -- --smoke
```

**2547 birim testi, hepsi geçiyor.** Satır çalıştırmak için değil, cevap denetlemek için yazıldılar:
**2548 birim testi, hepsi geçiyor.** Satır çalıştırmak için değil, cevap denetlemek için yazıldılar:

- **Formüller**, tanımlarından elle türetilmiş değerlerle sınanıyor — Viviani eğrisinin küre
üzerinde kalması, simidin boru yarıçapı, Chladni'nin m↔n antisimetrisi, her çekicinin sınırlı
Expand Down
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ npm test
npm start -- --smoke
```

- **2547 unit tests, all passing** on `main`. 703 of those shipped in v3.1.0;
- **2548 unit tests, all passing** on `main`. 703 of those shipped in v3.1.0;
105 came with v3.1.1; 163 came with v3.1.2; 157 came with v3.1.3 — 1128 at
that tag — 469 more with v3.1.4, most of them from the MilkDrop work, and 878
on `main` since.
Expand Down
4 changes: 2 additions & 2 deletions src/shared/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@
visualizer: {
// Tüm türler ve grupları: shared/mode-catalog.js (#638)
type: 'bars',
colorMode: 'rainbow', // 'custom' | 'theme' | 'rainbow'
rainbow: true,
colorMode: 'theme', // 'custom' | 'theme' | 'rainbow'
rainbow: false,
color: '#3aa6ff',
color2: '#d24bff',
barCount: 160,
Expand Down
11 changes: 11 additions & 0 deletions tests/background-color-mode.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ test('kaynak: resolveBackgroundColors disa acik', () => {
assert.match(defaultsSrc, /resolveBackgroundColors,/);
});

test('factory: visualizer + background colorMode default to theme', () => {
const SV = loadSV();
const cfg = SV.defaultConfig();
assert.strictEqual(cfg.visualizer.colorMode, 'theme');
assert.strictEqual(cfg.visualizer.rainbow, false);
assert.strictEqual(cfg.background.colorMode, 'theme');
/* Source of truth in defaults.js — visualizer must not default to rainbow. */
assert.match(defaultsSrc, /visualizer:\s*\{[\s\S]*?colorMode:\s*'theme'/);
assert.doesNotMatch(defaultsSrc, /visualizer:\s*\{[\s\S]*?colorMode:\s*'rainbow'/);
});

test('resolve: theme gradient.colors kullanir', () => {
const SV = loadSV();
const cols = ['#111111', '#222222', '#333333', '#444444', '#555555'];
Expand Down
Loading