Compare commits
	
		
			2 Commits
		
	
	
		
			165d946e0d
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d9941b38b5 | |||
| 7442a14a8f | 
							
								
								
									
										12
									
								
								src/main.rs
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								src/main.rs
									
									
									
									
									
								
							@@ -12,7 +12,7 @@ use iced::{
 | 
			
		||||
    },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
use std::fs::{File, OpenOptions};
 | 
			
		||||
use std::fs::OpenOptions;
 | 
			
		||||
use std::io::{BufWriter, Write};
 | 
			
		||||
use std::{env, fs, path::PathBuf};
 | 
			
		||||
use texts::*;
 | 
			
		||||
@@ -380,6 +380,12 @@ impl State {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fn view(&self) -> Element<Message> {
 | 
			
		||||
 | 
			
		||||
        // TODO make this dynamic
 | 
			
		||||
        // max height that the scripture body can be
 | 
			
		||||
        // max height that the search resutls can be
 | 
			
		||||
        let max_height = 600;
 | 
			
		||||
 | 
			
		||||
        // Header bar, static, doesn't scroll
 | 
			
		||||
        column![
 | 
			
		||||
            row![
 | 
			
		||||
@@ -460,6 +466,7 @@ impl State {
 | 
			
		||||
                                )
 | 
			
		||||
                                .padding([5, 5])
 | 
			
		||||
                            )
 | 
			
		||||
                            .height(max_height)
 | 
			
		||||
                            .spacing(5),
 | 
			
		||||
                            // Scripture
 | 
			
		||||
                            scrollable(
 | 
			
		||||
@@ -481,8 +488,7 @@ impl State {
 | 
			
		||||
                                    )
 | 
			
		||||
                                }
 | 
			
		||||
                            )
 | 
			
		||||
                            // TODO make this dynamic
 | 
			
		||||
                            .height(600)
 | 
			
		||||
                            .height(max_height)
 | 
			
		||||
                            .spacing(5)
 | 
			
		||||
                        ],
 | 
			
		||||
                        // Notes
 | 
			
		||||
 
 | 
			
		||||
@@ -192,7 +192,7 @@ pub fn get(book: &str, chap_and_ver: &str, bible: &Bible) -> Result<String, Stri
 | 
			
		||||
 | 
			
		||||
                        let translation = &bible.translation_name;
 | 
			
		||||
 | 
			
		||||
                        buf += &format!("{style_bold}[{translation}] {style_underline}{book_name}:{start}-{end}{style_reset}:\n");
 | 
			
		||||
                        buf += &format!("{style_bold}[{translation}] {style_underline}{book_name} {}:{start}-{end}{style_reset}:\n", chapter.number);
 | 
			
		||||
                        for num in start..=end {
 | 
			
		||||
                            if let Some(verse) = chapter.get_verse_by_index(num) {
 | 
			
		||||
                                buf += &format!(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user