summaryrefslogtreecommitdiffstats
path: root/src/program.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-09-18 21:19:33 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-09-18 21:19:33 +0200
commit93068836182cb2a6527a267453f280eb5c0d34a3 (patch)
tree9adf7113af1d66f44f0ecde20926bfa4d85acf72 /src/program.rs
parentd20ce8d82cb4936602c57064a896f7ed686529be (diff)
downloadiced-93068836182cb2a6527a267453f280eb5c0d34a3.tar.gz
iced-93068836182cb2a6527a267453f280eb5c0d34a3.tar.bz2
iced-93068836182cb2a6527a267453f280eb5c0d34a3.zip
Fix order of `Program::theme` implementation
Diffstat (limited to '')
-rw-r--r--src/program.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/program.rs b/src/program.rs
index 68efab88..94cb9a7d 100644
--- a/src/program.rs
+++ b/src/program.rs
@@ -570,14 +570,6 @@ pub fn with_executor<P: Program, E: Executor>(
type Renderer = P::Renderer;
type Executor = E;
- fn theme(
- &self,
- state: &Self::State,
- window: window::Id,
- ) -> Self::Theme {
- self.program.theme(state, window)
- }
-
fn title(&self, state: &Self::State, window: window::Id) -> String {
self.program.title(state, window)
}
@@ -605,6 +597,14 @@ pub fn with_executor<P: Program, E: Executor>(
self.program.subscription(state)
}
+ fn theme(
+ &self,
+ state: &Self::State,
+ window: window::Id,
+ ) -> Self::Theme {
+ self.program.theme(state, window)
+ }
+
fn style(
&self,
state: &Self::State,