# থিম

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.

## একটি থিম বেছে নিন

**দেখুন → থিম** খুলুন এবং একটি থিমে ক্লিক করুন: পুরো উইন্ডোটি একবারে পরিবর্তিত হয়, পুনরায় চালু করার প্রয়োজন হয় না। তারপর **দেখুন → ডার্ক মোড সমর্থন** এবং **দেখুন → সর্বদা ডার্ক** ব্যবহার করে এর হালকা বা ডার্ক দিকটি বেছে নিন, যেমন ক্লাসিক চেহারার জন্য ([ডার্ক মোড](https://vdm.mikaillab.com/bn/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/bn/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.

## থিম ফাইলগুলি কোথায় থাকে

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:

| সিস্টেম | ফোল্ডার |
|---|---|
| Windows | `%APPDATA%\voltdownloadmanager\themes` |
| Linux | `~/.local/share/voltdownloadmanager/themes` |
| macOS | `~/Library/Application Support/voltdownloadmanager/themes` |
| [পোর্টেবল কপি](https://vdm.mikaillab.com/bn/help/portable.html) | `data\themes`প্রোগ্রামের পাশে |

দুই সেকেন্ডের মধ্যে একটি নতুন ফাইল **দেখুন → থিম**-এ, অন্তর্নির্মিত থিমগুলির নিচে, এটি যে `name` দেয় তার দ্বারা প্রদর্শিত হয়। একটি ফাইল সম্পাদনা করার পরে, পরিবর্তন দেখতে **দেখুন → থিম**-এ এটি আবার নির্বাচন করুন।

একটি থিম একটি ফাইল (`harbour.toml`) হতে পারে অথবা নিজস্ব একটি ফোল্ডার (`harbour/theme.toml`) হতে পারে যখন এটি আইকন নিয়ে আসে।

**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.

## Base16 এবং pywal কালার স্কিম

অন্যান্য প্রোগ্রামের জন্য তৈরি কালার স্কিমগুলোও থিম, কোনো রূপান্তরের প্রয়োজন নেই:

- **একটি Base16 স্কিম**, `.yaml` ফাইল যা [Base16 এবং Base24 স্কিম](https://github.com/tinted-theming/schemes)-এর সাথে আসে: ক্লাসিক লেআউট (`scheme:` এবং `base00` থেকে উপরে `base0F` পর্যন্ত) এবং নতুন লেআউট উভয়ই (`name:` এবং একটি `palette:` ব্লক)। একটি Base24 স্কিম তার প্রথম 16টি রঙ হিসাবে পঠিত হয়।
- **pywal-এর `colors.json`**, অথবা pywal-এর আকারের যেকোনো প্রোগ্রামের ফাইল (wallust-এর pywal টেমপ্লেট)।

**দেখুন → থিম → একটি থিম ফাইল যোগ করুন…** ব্যবহার করে এটি যোগ করুন, অথবা নিজে থিম ফোল্ডারে রাখুন। এটি স্কিমের নাম অনুসারে **দেখুন → থিম**-এ প্রদর্শিত হয় (`name:` অথবা `scheme:`; pywal-এর নামকরণ ওয়ালপেপারের নামে করা হয়)।

**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 |
|---|---|---|
| ডাউনলোড তালিকা, টেক্সট বক্স এবং মেনু | `base00`(পটভূমি) | `special.background` |
| Windows, ডায়ালগ, টুলবার, মেনু বার এবং কলাম হেডার | `base01`(হালকা পটভূমি) | পটভূমি অগ্রভাগের দিকে এক ধাপ |
| টেক্সট | `base05`(অগ্রভাগ) | `special.foreground` |
| দ্বিতীয় পর্যায়ের টেক্সট (আকার, নোট) | `base04` | `color8` |
| ফোকাস, ডিফল্ট বোতাম, চেক বক্স, লিঙ্ক, নির্বাচন এবং অগ্রগতি বার | `base0D`(নীল) | `color4` |
| ত্রুটি | `base08`(লাল) | `color1` |
| সতর্কতা | `base0A`(হলুদ) | `color3` |
| সাফল্য, মিটার এবং একটি টরেন্টের অংশ | `base0B`(সবুজ) | `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.

রঙের চেয়ে বেশি কিছু পরিবর্তন করতে, একটি থিম ফাইল তৈরি করুন যা তার ফাইলের নাম দ্বারা স্কিমটি উত্তরাধিকার সূত্রে পায় এবং আপনার পছন্দসই জিনিস যোগ করে:

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

[sizes]
radius = 6
```

`inherits = "pywal"`একইভাবে কাজ করে, এবং `wal`-কেও অনুসরণ করে।

## ফাইলটি

একটি থিম হলো [TOML](https://toml.io/)-এ (অথবা JSON, `.json`; অথবা একটি [কালার স্কিম](#base16-and-pywal-colour-schemes), `.yaml`) একটি ছোট টেক্সট ফাইল। এটি শুধুমাত্র যা পরিবর্তন করে তার নাম দেয়; অন্য সবকিছু যে থিম থেকে `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`** — **দেখুন → থিম** যা তালিকাভুক্ত করে; যদি কোনো নাম না থাকে তবে ফাইলের নাম।
- **`inherits`** — আপনার থিম যেখান থেকে শুরু হয়: `classic` (যদি বাদ দেওয়া হয় তবে ডিফল্ট), একটি অন্তর্নির্মিত থিমের আইডি (`metro`, `adwaita`, `breeze`, `luna`, `aero`, `aqua`, `high-contrast`), অথবা একই ফোল্ডারে থাকা অন্য একটি থিম ফাইল, তার ফাইলের নাম সহ `.toml` ছাড়া। একটি ফাইল যা অন্য একটিকে উত্তরাধিকার সূত্রে পায় তা আবার উত্তরাধিকার সূত্রে পাওয়া যেতে পারে; একটি থিম নিজেকে উত্তরাধিকার সূত্রে পেতে পারে না।
- **`[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]`** — উভয় দিকে একক রঙের ভূমিকা (যেমন `window`, `accent` বা `"segments.done"`); শুধুমাত্র এক দিকে **`[light]`** এবং **`[dark]`**। একটি রঙ হলো `#rrggbb`, অথবা স্বচ্ছতা সহ `#rrggbbaa`। একটি ফাইল যে ভূমিকাগুলি সেট করে তা তার বীজগুলির উপর জয়ী হয়।
- **`[sizes]`** — কোণার ব্যাসার্ধ, বর্ডারের প্রস্থ, ফন্টের আকার এবং সারির উচ্চতা, পিক্সেলে।
- **`[controls]`** — টেক্সট বক্স, চেকবক্স, বাটন, প্রোগ্রেস বার, স্ক্রল বার, কলাম হেডার, ফোকাস মার্ক এবং টাইটেল বারের আকার, আর মেনুগুলোর ফন্ট।
- **`icons`** — `color`, `mono` (এক রঙ) বা `accent`।
- **`contrast = "high"`** — বাকি সবকিছুর উপরে প্রতিটি প্রান্ত এবং টেক্সট রঙকে শক্তিশালী করে।

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.

### আইকন

নিজস্ব ফোল্ডারে থাকা একটি থিম (`harbour/theme.toml`) তার আইকনগুলি `icons/16` এবং `icons/24`-এ (এবং, PNG ছবির জন্য, `icons/32` এবং `icons/48`, যা 150% বা তার বেশি স্কেল করা স্ক্রিনে ব্যবহৃত হয়) আনতে পারে, প্রতিটি তার প্রদর্শিত জিনিসের জন্য নামযুক্ত (`tb-add-url.svg`, `cat-music.png`…)। SVG এবং PNG ফাইলগুলি তাদের রঙ বজায় রাখে; `-symbolic.svg` এবং `-symbolic.png` ফাইলগুলি, GNOME এবং KDE তাদের নাম দেয়, থিমের টেক্সট রঙ নেয়। সেটটিতে যে আইকন নেই তা ক্লাসিক চেহারা যেভাবে আঁকে সেভাবে আঁকা হয়। নামের সম্পূর্ণ তালিকা [themeicons.rs](https://github.com/mikailhossenimran/voltdownloadmanager/blob/main/crates/app/src/themeicons.rs)-এ (`NEEDS`) আছে।

## একটি তৈরি করুন

1. **দেখুন → থিম → থিম ফোল্ডার খুলুন**, এবং সেখানে একটি নতুন `.toml` ফাইল তৈরি করুন (যেকোনো টেক্সট এডিটর)।
2. উপরের উদাহরণ থেকে শুরু করুন: বীজের রঙ পরিবর্তন করুন, তারপর আপনি যেমন চান তেমন ভূমিকা এবং আকার যোগ করুন।
3. **দেখুন → থিম**-এ এটি নির্বাচন করুন, এবং উভয় দিক দেখুন: **দেখুন → সর্বদা ডার্ক** চালু এবং বন্ধ করে। নিশ্চিত করুন যে টেক্সট পঠনযোগ্য এবং ফোকাস মার্ক উভয় দিকেই দৃশ্যমান।

ওয়েবসাইটের [থিম পৃষ্ঠা](https://vdm.mikaillab.com/themes.html#ai-prompt)-এ একটি প্রম্পট আছে যা আপনি একটি AI অ্যাসিস্ট্যান্টকে দিতে পারেন, ফরম্যাট, প্রতিটি কী এবং নিয়ম সহ, আপনার জন্য একটি বর্ণনা থেকে একটি থিম লেখার জন্য।

## শেয়ার করুন

এমন কিছু তৈরি করেছেন যা অন্যরা পছন্দ করবে? একটি [পুল রিকোয়েস্ট](https://github.com/mikailhossenimran/voltdownloadmanager/pulls) খুলুন যা এটিকে `crates/app/assets/themes`-এ যোগ করে, এর সাথে:

- `.toml` ফাইল, এবং এর যদি আইকন ফোল্ডার থাকে;
- এর হালকা এবং অন্ধকার দিকের প্রধান উইন্ডোর স্ক্রিনশট;
- 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.

এখনও নিশ্চিত নন? প্রথমে [আলোচনায়](https://github.com/mikailhossenimran/voltdownloadmanager/discussions) দেখান। [CONTRIBUTING.md](https://vdm.mikaillab.com/bn/contributing.html)-এ পুল রিকোয়েস্ট কীভাবে কাজ করে তা ব্যাখ্যা করা আছে।

## পরবর্তী ধাপ

- [শুরু করা →](https://vdm.mikaillab.com/bn/help/getting-started.html)
- [বিকল্প →](https://vdm.mikaillab.com/bn/help/options.html)

## সম্পর্কিত

- [সেটিংস](https://vdm.mikaillab.com/bn/help/options.html)
- [ভাষা](https://vdm.mikaillab.com/bn/help/languages.html)
- [পোর্টেবল মোড](https://vdm.mikaillab.com/bn/help/portable.html)
- [কিবোর্ড শর্টকাট](https://vdm.mikaillab.com/bn/help/keyboard-shortcuts.html)
- [কমান্ড লাইন এবং অটোমেশন](https://vdm.mikaillab.com/bn/help/command-line.html)

[GitHub-এ এই পৃষ্ঠাটি সম্পাদনা করুন](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/docs/themes.md) [এই পৃষ্ঠা নিয়ে একটি সমস্যা রিপোর্ট করুন](https://github.com/mikailhossenimran/voltdownloadmanager/issues/new?template=website.yml&title=Website%3A%20Themes&page=https%3A//vdm.mikaillab.com/help/themes.html) [পৃষ্ঠার ইতিহাস](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/docs/themes.md)

বিনামূল্যে, ওপেন সোর্স, কোনো বিজ্ঞাপন নেই, কোনো ট্রায়াল নেই।

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