Skip to content

Commit

Permalink
Minor fix on fixed transparency on backgrounds for Welcome/Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed May 23, 2024
1 parent 64255e7 commit 1a7a9c1
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

- TBD

## 0.0.39

- Minor fix on fixed transparency on backgrounds for Welcome/Dialog.

## 0.0.38

- Corrections for transparency and blur for MacOS windows.
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.0.38"
version = "0.0.39"
authors = ["Raphael Amorim <rapha850@gmail.com>"]
edition = "2021"
license = "MIT"
Expand All @@ -25,13 +25,13 @@ documentation = "https://github.com/raphamorim/rio#readme"
# Note: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#multiple-locations
# Sugarloaf example uses path when used locally, but uses
# version from crates.io when published.
sugarloaf = { path = "sugarloaf", version = "0.0.38" }
corcovado = { path = "corcovado", version = "0.0.38" }
rio-config = { path = "rio-config", version = "0.0.38" }
rio-proc-macros = { path = "rio-proc-macros", version = "0.0.38" }
copa = { path = "copa", default-features = true, version = "0.0.38" }
teletypewriter = { path = "teletypewriter", version = "0.0.38" }
rio-backend = { path = "rio-backend", version = "0.0.38" }
sugarloaf = { path = "sugarloaf", version = "0.0.39" }
corcovado = { path = "corcovado", version = "0.0.39" }
rio-config = { path = "rio-config", version = "0.0.39" }
rio-proc-macros = { path = "rio-proc-macros", version = "0.0.39" }
copa = { path = "copa", default-features = true, version = "0.0.39" }
teletypewriter = { path = "teletypewriter", version = "0.0.39" }
rio-backend = { path = "rio-backend", version = "0.0.39" }

raw-window-handle = "0.5"
parking_lot = "0.12.1"
Expand Down
6 changes: 6 additions & 0 deletions frontends/cross-winit/src/router/dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ pub fn screen(sugarloaf: &mut Sugarloaf, content: &str) {
let blue = [0.1764706, 0.6039216, 1.0, 1.0];
let yellow = [0.9882353, 0.7294118, 0.15686275, 1.0];
let red = [1.0, 0.07058824, 0.38039216, 1.0];
let black = [0.0, 0.0, 0.0, 1.0];

let height = sugarloaf.layout.height / sugarloaf.layout.scale_factor;

let assistant_background = vec![
Rect {
position: [0., 0.0],
color: black,
size: [sugarloaf.layout.width, sugarloaf.layout.height],
},
Rect {
position: [0., 30.0],
color: blue,
Expand Down
6 changes: 6 additions & 0 deletions frontends/cross-winit/src/router/welcome.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ pub fn screen(sugarloaf: &mut Sugarloaf) {
let blue = [0.1764706, 0.6039216, 1.0, 1.0];
let yellow = [0.9882353, 0.7294118, 0.15686275, 1.0];
let red = [1.0, 0.07058824, 0.38039216, 1.0];
let black = [0.0, 0.0, 0.0, 1.0];

let width = sugarloaf.layout.width / sugarloaf.layout.scale_factor;

let assistant_background = vec![
Rect {
position: [0., 0.0],
color: black,
size: [sugarloaf.layout.width, sugarloaf.layout.height],
},
Rect {
position: [0., 30.0],
color: blue,
Expand Down
2 changes: 1 addition & 1 deletion misc/osx/Rio.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<key>CFBundleIconFile</key>
<string>rio.icns</string>
<key>CFBundleShortVersionString</key>
<string>0.0.38</string>
<string>0.0.39</string>
<key>CFBundleVersion</key>
<string>20230528.115631</string>
<key>CFBundleURLTypes</key>
Expand Down
2 changes: 1 addition & 1 deletion misc/windows/rio.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
UpgradeCode="87c21c74-dbd5-4584-89d5-46d9cd0c40a8"
Language="1033"
Codepage="1252"
Version="0.0.38"
Version="0.0.39"
Manufacturer="Raphael Amorim"
InstallerVersion="200">

Expand Down

0 comments on commit 1a7a9c1

Please sign in to comment.