summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-04-11 06:18:52 +0200
committerLibravatar GitHub <noreply@github.com>2023-04-11 06:18:52 +0200
commitff24f9040c822fa7706087091e92ebee1e5211c5 (patch)
tree18e5a9053b092cb9d0d9f0b95f35b1bdeb6aaa7f /style
parent931b30dc5ac17b65b1fb996cb4b87fc946c410e3 (diff)
parent927c3a8caaefc241c48d6200266d286e20dc2076 (diff)
downloadiced-ff24f9040c822fa7706087091e92ebee1e5211c5.tar.gz
iced-ff24f9040c822fa7706087091e92ebee1e5211c5.tar.bz2
iced-ff24f9040c822fa7706087091e92ebee1e5211c5.zip
Merge pull request #1702 from casperstorm/feat/text_input_handle
Added `Icon` to `text_input`
Diffstat (limited to '')
-rw-r--r--style/src/text_input.rs2
-rw-r--r--style/src/theme.rs3
2 files changed, 5 insertions, 0 deletions
diff --git a/style/src/text_input.rs b/style/src/text_input.rs
index d97016dc..73b05852 100644
--- a/style/src/text_input.rs
+++ b/style/src/text_input.rs
@@ -12,6 +12,8 @@ pub struct Appearance {
pub border_width: f32,
/// The border [`Color`] of the text input.
pub border_color: Color,
+ /// The icon [`Color`] of the text input.
+ pub icon_color: Color,
}
/// A set of rules that dictate the style of a text input.
diff --git a/style/src/theme.rs b/style/src/theme.rs
index 0ebd82a4..0d974a19 100644
--- a/style/src/theme.rs
+++ b/style/src/theme.rs
@@ -1028,6 +1028,7 @@ impl text_input::StyleSheet for Theme {
border_radius: 2.0,
border_width: 1.0,
border_color: palette.background.strong.color,
+ icon_color: palette.background.weak.text,
}
}
@@ -1043,6 +1044,7 @@ impl text_input::StyleSheet for Theme {
border_radius: 2.0,
border_width: 1.0,
border_color: palette.background.base.text,
+ icon_color: palette.background.weak.text,
}
}
@@ -1058,6 +1060,7 @@ impl text_input::StyleSheet for Theme {
border_radius: 2.0,
border_width: 1.0,
border_color: palette.primary.strong.color,
+ icon_color: palette.background.weak.text,
}
}