Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
release: improve rendering architecture and dark mode
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { interiorWorkplaneGridCoordinates, workplaneGridPalette, WORKPLANE_LINE_ELEVATION, WORKPLANE_MAJOR_GRID_INTERVAL } from "@/lib/workplaneGrid";
|
||||
import { interiorWorkplaneGridCoordinates, workplaneGridPalette, workplaneThemePalette, WORKPLANE_LINE_ELEVATION, WORKPLANE_MAJOR_GRID_INTERVAL } from "@/lib/workplaneGrid";
|
||||
|
||||
describe("workplane grid geometry", () => {
|
||||
it("excludes both perimeter coordinates when spacing divides the workplane", () => {
|
||||
@@ -33,4 +33,26 @@ describe("workplane grid geometry", () => {
|
||||
expect(palette.major.opacity).toBeLessThan(palette.axis.opacity);
|
||||
expect(palette.minor.color).not.toBe(palette.major.color);
|
||||
});
|
||||
|
||||
it("uses a complete dark viewport palette without changing the configured project background", () => {
|
||||
const configuredBackground = "#f8fbfc";
|
||||
const dark = workplaneThemePalette("dark", configuredBackground);
|
||||
const light = workplaneThemePalette("light", configuredBackground);
|
||||
|
||||
expect(dark.sceneBackground).not.toBe(configuredBackground);
|
||||
expect(dark.surface.color).not.toBe(light.surface.color);
|
||||
expect(dark.grid.minor.color).not.toBe(light.grid.minor.color);
|
||||
expect(light.sceneBackground).toBe(configuredBackground);
|
||||
});
|
||||
|
||||
it("applies a custom project grid color while retaining line hierarchy", () => {
|
||||
const customColor = "#c23b72";
|
||||
const palette = workplaneGridPalette("light", customColor);
|
||||
|
||||
expect(palette.minor.color).toBe(customColor);
|
||||
expect(palette.major.color).toBe(customColor);
|
||||
expect(palette.axis.color).toBe(customColor);
|
||||
expect(palette.minor.opacity).toBeLessThan(palette.major.opacity);
|
||||
expect(palette.major.opacity).toBeLessThan(palette.axis.opacity);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user