[PR #6754] [MERGED] add "To budget" color variables #36911

Closed
opened 2026-04-20 23:44:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/6754
Author: @Juulz
Created: 1/22/2026
Status: Merged
Merged: 1/22/2026
Merged by: @MatissJanis

Base: masterHead: toBudget-variables


📝 Commits (8)

  • be031ef Add budget color variables to theme
  • 6d48edc Add isPositive check for budget amount styling
  • 21ef360 Add budget number constants for positive, zero, and negative
  • c25a7a3 Add budget status constants for positive, zero, and negative
  • 2204d72 Add budget number constants for positive, zero, and negative
  • 9678cbe Update midnight.ts
  • d2506c1 Create 6754.md
  • c05d0a3 Merge branch 'master' into toBudget-variables

📊 Changes

7 files changed (+32 additions, -6 deletions)

View changed files

📝 packages/component-library/src/theme.ts (+3 -0)
📝 packages/desktop-client/src/components/budget/envelope/budgetsummary/ToBudgetAmount.tsx (+11 -6)
📝 packages/desktop-client/src/style/themes/dark.ts (+3 -0)
📝 packages/desktop-client/src/style/themes/development.ts (+3 -0)
📝 packages/desktop-client/src/style/themes/light.ts (+3 -0)
📝 packages/desktop-client/src/style/themes/midnight.ts (+3 -0)
upcoming-release-notes/6754.md (+6 -0)

📄 Description

Add "To Budget" color variables for toBudgetPositive, toBudgetNegative and toBudgetZero.

A good use example is when using strict zero-sum budgeting: To Budget > 0.00 can be yellow, To Budget = 0.00 can be green (or another GOAL color changeable by custom theme) and To Budget < 0.00 can be red. As the To Budget number is our touchstone, it would be great to change it's look thematically.

I did not change the default colors as set in pr #6747 (green, green, red).

@matt-fidd 👀

Envelope Budget, with colors as defined in #6747

Screenshot 2026-01-22 112807

Example Use Case described above:

Screenshot 2026-01-22 112656

or, perhaps that purple 0.00 means GOAL!

Screenshot 2026-01-22 113230

Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 28 14.41 MB → 14.41 MB (+781 B) +0.01%
loot-core 1 5.84 MB 0%
api 1 4.38 MB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
28 14.41 MB → 14.41 MB (+781 B) +0.01%
Changeset
File Δ Size
src/components/budget/envelope/budgetsummary/ToBudgetAmount.tsx 📈 +94 B (+2.18%) 4.22 kB → 4.31 kB
src/style/themes/development.ts 📈 +137 B (+1.58%) 8.46 kB → 8.59 kB
src/style/themes/dark.ts 📈 +137 B (+1.58%) 8.49 kB → 8.62 kB
src/style/themes/light.ts 📈 +137 B (+1.57%) 8.55 kB → 8.68 kB
src/style/themes/midnight.ts 📈 +125 B (+1.50%) 8.13 kB → 8.25 kB
home/runner/work/actual/actual/packages/component-library/src/theme.ts 📈 +151 B (+1.21%) 12.18 kB → 12.32 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 9.24 MB → 9.24 MB (+781 B) +0.01%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 12.94 kB 0%
static/js/workbox-window.prod.es5.js 5.64 kB 0%
static/js/da.js 106.62 kB 0%
static/js/de.js 176.28 kB 0%
static/js/en-GB.js 7.18 kB 0%
static/js/en.js 159.4 kB 0%
static/js/es.js 171.98 kB 0%
static/js/fr.js 180.63 kB 0%
static/js/it.js 172.42 kB 0%
static/js/nb-NO.js 158.09 kB 0%
static/js/nl.js 103.35 kB 0%
static/js/pl.js 88.64 kB 0%
static/js/pt-BR.js 146.32 kB 0%
static/js/ru.js 106.97 kB 0%
static/js/sv.js 78.28 kB 0%
static/js/th.js 182.35 kB 0%
static/js/uk.js 216.34 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 120.54 kB 0%
static/js/ReportRouter.js 1.05 MB 0%
static/js/narrow.js 640.99 kB 0%
static/js/TransactionList.js 101.58 kB 0%
static/js/wide.js 159.97 kB 0%
static/js/AppliedFilters.js 9.71 kB 0%
static/js/usePayeeRuleCounts.js 11.79 kB 0%
static/js/useTransactionBatchActions.js 13.23 kB 0%
static/js/FormulaEditor.js 1.04 MB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.84 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.BInehE-N.js 5.84 MB 0%

api

Total

Files count Total bundle size % Changed
1 4.38 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
bundle.api.js 4.38 MB 0%

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/6754 **Author:** [@Juulz](https://github.com/Juulz) **Created:** 1/22/2026 **Status:** ✅ Merged **Merged:** 1/22/2026 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `toBudget-variables` --- ### 📝 Commits (8) - [`be031ef`](https://github.com/actualbudget/actual/commit/be031ef58a66cadf0b2108010dc3672487dd2fb0) Add budget color variables to theme - [`6d48edc`](https://github.com/actualbudget/actual/commit/6d48edc0f0c8f2e83f3119b4477c6f91061e6488) Add isPositive check for budget amount styling - [`21ef360`](https://github.com/actualbudget/actual/commit/21ef360220dd7d6c3a809ddfd92a436c5618d0fc) Add budget number constants for positive, zero, and negative - [`c25a7a3`](https://github.com/actualbudget/actual/commit/c25a7a3f821c893fe33ab7163de49f32241563e0) Add budget status constants for positive, zero, and negative - [`2204d72`](https://github.com/actualbudget/actual/commit/2204d722a28bd3e75ac06d2da8d28f0c27c94ed7) Add budget number constants for positive, zero, and negative - [`9678cbe`](https://github.com/actualbudget/actual/commit/9678cbec55f58fae37f7bd9c0402be43bfacca19) Update midnight.ts - [`d2506c1`](https://github.com/actualbudget/actual/commit/d2506c1126812aa28a2f31d8bc4a9bf7f9e7d19b) Create 6754.md - [`c05d0a3`](https://github.com/actualbudget/actual/commit/c05d0a36b11978e1f6362e1ec1b64e9a42efe201) Merge branch 'master' into toBudget-variables ### 📊 Changes **7 files changed** (+32 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/component-library/src/theme.ts` (+3 -0) 📝 `packages/desktop-client/src/components/budget/envelope/budgetsummary/ToBudgetAmount.tsx` (+11 -6) 📝 `packages/desktop-client/src/style/themes/dark.ts` (+3 -0) 📝 `packages/desktop-client/src/style/themes/development.ts` (+3 -0) 📝 `packages/desktop-client/src/style/themes/light.ts` (+3 -0) 📝 `packages/desktop-client/src/style/themes/midnight.ts` (+3 -0) ➕ `upcoming-release-notes/6754.md` (+6 -0) </details> ### 📄 Description Add "To Budget" color variables for toBudgetPositive, toBudgetNegative and toBudgetZero. A good use example is when using strict zero-sum budgeting: To Budget > 0.00 can be yellow, To Budget = 0.00 can be green (or another GOAL color changeable by custom theme) and To Budget < 0.00 can be red. As the To Budget number is our touchstone, it would be great to change it's look thematically. I did not change the default colors as set in pr #6747 (green, green, red). @matt-fidd 👀 Envelope Budget, with colors as defined in #6747 <img width="1371" height="292" alt="Screenshot 2026-01-22 112807" src="https://github.com/user-attachments/assets/33e39a1e-4fc7-407d-ac7b-0a63ef8dc9f2" /> Example Use Case described above: <img width="1369" height="301" alt="Screenshot 2026-01-22 112656" src="https://github.com/user-attachments/assets/4e5e1ed8-2c4d-4577-ba9f-3df657c5e407" /> or, perhaps that purple 0.00 means GOAL! <img width="1372" height="295" alt="Screenshot 2026-01-22 113230" src="https://github.com/user-attachments/assets/667cf3d5-2769-43de-9669-87fb6b2d4dea" /> <!--- actual-bot-sections ---> <hr /> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 28 | 14.41 MB → 14.41 MB (+781 B) | +0.01% loot-core | 1 | 5.84 MB | 0% api | 1 | 4.38 MB | 0% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 28 | 14.41 MB → 14.41 MB (+781 B) | +0.01% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/components/budget/envelope/budgetsummary/ToBudgetAmount.tsx` | 📈 +94 B (+2.18%) | 4.22 kB → 4.31 kB `src/style/themes/development.ts` | 📈 +137 B (+1.58%) | 8.46 kB → 8.59 kB `src/style/themes/dark.ts` | 📈 +137 B (+1.58%) | 8.49 kB → 8.62 kB `src/style/themes/light.ts` | 📈 +137 B (+1.57%) | 8.55 kB → 8.68 kB `src/style/themes/midnight.ts` | 📈 +125 B (+1.50%) | 8.13 kB → 8.25 kB `home/runner/work/actual/actual/packages/component-library/src/theme.ts` | 📈 +151 B (+1.21%) | 12.18 kB → 12.32 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 9.24 MB → 9.24 MB (+781 B) | +0.01% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/indexeddb-main-thread-worker-e59fee74.js | 12.94 kB | 0% static/js/workbox-window.prod.es5.js | 5.64 kB | 0% static/js/da.js | 106.62 kB | 0% static/js/de.js | 176.28 kB | 0% static/js/en-GB.js | 7.18 kB | 0% static/js/en.js | 159.4 kB | 0% static/js/es.js | 171.98 kB | 0% static/js/fr.js | 180.63 kB | 0% static/js/it.js | 172.42 kB | 0% static/js/nb-NO.js | 158.09 kB | 0% static/js/nl.js | 103.35 kB | 0% static/js/pl.js | 88.64 kB | 0% static/js/pt-BR.js | 146.32 kB | 0% static/js/ru.js | 106.97 kB | 0% static/js/sv.js | 78.28 kB | 0% static/js/th.js | 182.35 kB | 0% static/js/uk.js | 216.34 kB | 0% static/js/resize-observer.js | 18.37 kB | 0% static/js/BackgroundImage.js | 120.54 kB | 0% static/js/ReportRouter.js | 1.05 MB | 0% static/js/narrow.js | 640.99 kB | 0% static/js/TransactionList.js | 101.58 kB | 0% static/js/wide.js | 159.97 kB | 0% static/js/AppliedFilters.js | 9.71 kB | 0% static/js/usePayeeRuleCounts.js | 11.79 kB | 0% static/js/useTransactionBatchActions.js | 13.23 kB | 0% static/js/FormulaEditor.js | 1.04 MB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 5.84 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.BInehE-N.js | 5.84 MB | 0% </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 4.38 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- bundle.api.js | 4.38 MB | 0% </div> </details> </details> <!--- bundlestats-action-comment key:combined end ---> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 23:44:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#36911