# Tema

A theme changes how VDM looks and keeps everything where it was: the same windows, menus and buttons in the same places, drawn in other colours, shapes and icons. Each theme has a light and a dark side.

## Pilih salah satu

Buka **Tampilan → Tema** dan klik tema: seluruh jendela berubah sekaligus, tidak perlu memulai ulang. **Tampilan → Dukungan Mode Gelap** dan **Tampilan → Selalu gelap** kemudian pilih sisi terang atau gelapnya, seperti tampilan klasik ([Mode gelap](https://vdm.mikaillab.com/id/help/getting-started.html#dark-mode)).

The built-in themes are **Classic** (VDM's own look, the default), **Native** (your system's accent colour and contrast), **High contrast**, and the style themes **Metro**, **Adwaita**, **Breeze**, **Luna**, **Aero**, **Aqua** and **Emerald**, each with its own control shapes and icons, and on Windows its own title bar. [Getting started](https://vdm.mikaillab.com/id/help/getting-started.html#themes) describes each one; the website's [Themes page](https://vdm.mikaillab.com/themes.html) shows them all, light and dark.

## Lokasi file tema

Theme files you make or download go in VDM's themes folder. **View → Theme → Open themes folder** opens it (and makes it the first time). It is in VDM's data folder:

| Sistem | Folder |
|---|---|
| Windows | `%APPDATA%\voltdownloadmanager\themes` |
| Linux | `~/.local/share/voltdownloadmanager/themes` |
| macOS | `~/Library/Application Support/voltdownloadmanager/themes` |
| [Salinan portabel](https://vdm.mikaillab.com/id/help/portable.html) | `data\themes`di samping program |

Dalam dua detik, file baru muncul di **Tampilan → Tema**, di bawah tema bawaan, dengan `name` yang diberikannya sendiri. Setelah Anda mengedit file, pilih lagi di **Tampilan → Tema** untuk melihat perubahannya.

Tema bisa berupa satu file (`harbour.toml`) atau foldernya sendiri (`harbour/theme.toml`) saat membawa ikon.

**View → Theme → Add a theme file…** does it for you: pick a file anywhere, and VDM copies it into the themes folder and uses it at once. A file that isn't a theme stays out, and VDM says why.

## Skema warna Base16 dan pywal

Skema warna yang dibuat untuk program lain juga merupakan tema, tanpa perlu konversi:

- **Skema Base16**, file `.yaml` yang digunakan [skema Base16 dan Base24](https://github.com/tinted-theming/schemes): baik tata letak klasik (`scheme:` dan `base00` ke `base0F` di bagian atas) maupun yang lebih baru (`name:` dan blok `palette:`). Skema Base24 dibaca sebagai 16 warna pertamanya.
- **pywal's `colors.json`**, atau file program apa pun dalam bentuk pywal (template pywal wallust).

Tambahkan dengan **Tampilan → Tema → Tambahkan file tema…**, atau letakkan sendiri di folder tema. Ini akan muncul di **Tampilan → Tema** di bawah nama skema (`name:` atau `scheme:`; pywal dinamai sesuai wallpaper).

**pywal itself:** once `wal` has run, **View → Theme** lists **pywal**, read straight from where pywal writes its colours: `~/.cache/wal/colors.json` (on Windows `%USERPROFILE%\.cache\wal\colors.json`, where winwal and pywal write it; `$PYWAL_CACHE_DIR` or `$XDG_CACHE_HOME/wal` when you set them). Pick it and VDM follows your wallpaper: each time `wal` writes new colours, VDM takes them within two seconds. It looks only at the file's date and size, every two seconds, and only while pywal is the theme. A copy added with **Add a theme file…** keeps the colours it had.

A scheme changes colours only, on the classic look: every window, button and menu stays where it was. A dark scheme makes VDM dark and a light one light, whatever **View → Always dark** says. The scheme's colours go where they mean the same:

| VDM | Base16 | pywal |
|---|---|---|
| Daftar unduhan, kotak teks, dan menu | `base00`(latar belakang) | `special.background` |
| Windows, dialog, bilah alat, bilah menu, dan header kolom | `base01`(latar belakang yang lebih terang) | latar belakang selangkah menuju latar depan |
| Teks | `base05`(latar depan) | `special.foreground` |
| Teks sekunder (ukuran, catatan) | `base04` | `color8` |
| Fokus, tombol default, kotak centang, tautan, pilihan, dan bilah kemajuan | `base0D`(biru) | `color4` |
| Kesalahan | `base08`(merah) | `color1` |
| Peringatan | `base0A`(kuning) | `color3` |
| Berhasil, meteran, dan bagian torrent | `base0B`(hijau) | `color2` |

Borders and the hover and pressed shades are mixed from these, as for a theme file's `[seeds]`. Text stays readable: text and secondary text at 4.5:1 or more against every background they sit on (WCAG AA), the accent at 3:1. A scheme short of that has those colours moved a little darker (lighter on a dark scheme) until they pass; VDM's log says which.

Untuk mengubah lebih dari sekadar warna, buat file tema yang mewarisi skema berdasarkan nama filenya dan menambahkan apa yang Anda suka:

```
name = "Gruvbox, my way"
inherits = "gruvbox-dark-medium"   # gruvbox-dark-medium.yaml, beside it
icons = "accent"

[sizes]
radius = 6
```

`inherits = "pywal"`bekerja dengan cara yang sama, dan mengikuti `wal` juga.

## File

Tema adalah satu file teks kecil dalam [TOML](https://toml.io/) (atau JSON, `.json`; atau [skema warna](#base16-and-pywal-colour-schemes), `.yaml`). Ini hanya menyebutkan apa yang diubahnya; yang lainnya berasal dari tema yang `inherits`:

```
name = "Harbour"
inherits = "classic"
icons = "color"

[seeds.light]
background = "#eef3f6"
surface = "#ffffff"
text = "#11202b"
accent = "#0f6c8c"

[seeds.dark]
background = "#14212a"
surface = "#0e171d"
text = "#e8f0f4"
accent = "#5cc3e6"

[sizes]
radius = 6

[controls]
focus = "ring"
```

- **`name`** — apa yang tercantum di **Tampilan → Tema**; nama file jika tidak ada.
- **`inherits`** — tema yang menjadi dasar tema Anda: `classic` (bawaan jika tidak disebutkan), id tema bawaan (`metro`, `adwaita`, `breeze`, `luna`, `aero`, `aqua`, `high-contrast`), atau file tema lain di folder yang sama, berdasarkan nama filenya tanpa `.toml`. File yang mewarisi tema lain dapat diwarisi secara bergantian; tema tidak dapat mewarisi dirinya sendiri.
- **`[seeds]`** — a handful of colours (`background`, `surface`, `header`, `text`, `accent`, `selection`, `error`, `warning`, `success`) that VDM spreads over every control. `[seeds.light]` and `[seeds.dark]` give each side its own.
- **`[colors]`** — peran warna tunggal (seperti `window`, `accent` atau `"segments.done"`) di kedua sisi; **`[light]`** dan **`[dark]`** hanya di satu sisi. Warna adalah `#rrggbb`, atau `#rrggbbaa` dengan transparansi. Peran yang ditetapkan file mengalahkan benihnya.
- **`[sizes]`** — radius sudut, lebar batas, ukuran font, dan tinggi baris, dalam piksel.
- **`[controls]`** — bentuk kotak teks, kotak centang, tombol, bilah kemajuan, bilah gulir, header kolom, tanda fokus, bilah judul, dan font menu.
- **`icons`** — `color`, `mono` (satu warna) atau `accent`.
- **`contrast = "high"`** — memperkuat setiap tepi dan warna teks di atas yang lainnya.

Every colour role, size and control style, with what it sets, is listed on the website's [Themes page](https://vdm.mikaillab.com/themes.html#make-your-own) (read from VDM's own code, so it never drifts). The built-in themes are written the same way: [read them on GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/tree/main/crates/app/assets/themes).

A key VDM doesn't know, or a value it can't read, is skipped and written to VDM's log (the `logs` folder beside the themes folder), so a file made for a newer VDM still loads. A file that isn't valid TOML or JSON doesn't load, and the log says why. A file named like a built-in theme (`metro.toml`) is passed over: give yours a name of its own.

### Ikon

Tema dalam foldernya sendiri (`harbour/theme.toml`) dapat membawa ikonnya di `icons/16` dan `icons/24` (dan, untuk gambar PNG, `icons/32` dan `icons/48`, digunakan pada layar yang diskalakan ke 150% atau lebih), masing-masing dinamai sesuai yang ditampilkannya (`tb-add-url.svg`, `cat-music.png`…). File SVG dan PNG mempertahankan warnanya; file `-symbolic.svg` dan `-symbolic.png`, seperti yang dinamai GNOME dan KDE, mengambil warna teks tema. Ikon yang tidak ada dalam set digambar seperti tampilan klasik menggambarnya. Daftar lengkap nama ada di [themeicons.rs](https://github.com/mikailhossenimran/voltdownloadmanager/blob/main/crates/app/src/themeicons.rs) (`NEEDS`).

## Buat satu

1. **Tampilan → Tema → Buka folder tema**, dan buat file `.toml` baru di sana (editor teks apa pun).
2. Mulai dari contoh di atas: ubah warna benih, lalu tambahkan peran dan ukuran seiring berjalannya waktu.
3. Pilih di **Tampilan → Tema**, dan lihat kedua sisinya: **Tampilan → Selalu gelap** aktif dan nonaktif. Periksa apakah teks dapat dibaca dan tanda fokus terlihat di keduanya.

[Halaman Tema](https://vdm.mikaillab.com/themes.html#ai-prompt) situs web memiliki petunjuk yang dapat Anda berikan kepada asisten AI, dengan format, setiap kunci, dan aturannya, untuk menulis tema untuk Anda dari deskripsi.

## Bagikan

Membuat sesuatu yang mungkin disukai orang lain? Buka [permintaan tarik](https://github.com/mikailhossenimran/voltdownloadmanager/pulls) yang menambahkannya ke `crates/app/assets/themes`, dengan:

- file `.toml`, dan folder ikonnya jika ada;
- tangkapan layar jendela utama di sisi terang dan gelapnya;
- a `SOURCES.txt` beside any icons, saying who drew them and under which licence. Icons must be your own or under a licence that lets VDM share them (GPL-3.0), never copied from another program.

Belum yakin? Tampilkan di [diskusi](https://github.com/mikailhossenimran/voltdownloadmanager/discussions) terlebih dahulu. [CONTRIBUTING.md](https://vdm.mikaillab.com/id/contributing.html) menjelaskan cara kerja permintaan tarik di sini.

## Langkah selanjutnya

- [Memulai →](https://vdm.mikaillab.com/id/help/getting-started.html)
- [Opsi →](https://vdm.mikaillab.com/id/help/options.html)

## Terkait

- [Opsi](https://vdm.mikaillab.com/id/help/options.html)
- [Bahasa](https://vdm.mikaillab.com/id/help/languages.html)
- [Mode portabel](https://vdm.mikaillab.com/id/help/portable.html)
- [Pintasan keyboard](https://vdm.mikaillab.com/id/help/keyboard-shortcuts.html)
- [Baris perintah dan otomatisasi](https://vdm.mikaillab.com/id/help/command-line.html)

[Edit halaman ini di GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/docs/themes.md) [Laporkan masalah dengan halaman ini](https://github.com/mikailhossenimran/voltdownloadmanager/issues/new?template=website.yml&title=Website%3A%20Themes&page=https%3A//vdm.mikaillab.com/help/themes.html) [Riwayat halaman](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/docs/themes.md)

Gratis, sumber terbuka, tanpa iklan, tanpa masa uji coba.

[Download Volt Download Manager](https://vdm.mikaillab.com/id/download.html)
