Skip to content
This repository has been archived by the owner on Feb 12, 2018. It is now read-only.

Commit

Permalink
derive clone for theme
Browse files Browse the repository at this point in the history
  • Loading branch information
TyOverby committed Jul 11, 2016
1 parent b62ce67 commit 8f1ec83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/highlighting/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use self::ParseThemeError::*;

/// A theme parsed from a `.tmTheme` file.
/// Contains fields useful for a theme list as well as `settings` for styling your editor.
#[derive(Debug, Default, RustcEncodable, RustcDecodable)]
#[derive(Clone, Debug, Default, RustcEncodable, RustcDecodable)]
pub struct Theme {
pub name: Option<String>,
pub author: Option<String>,
Expand All @@ -23,7 +23,7 @@ pub struct Theme {
/// Various properties meant to be used to style a text editor.
/// Basically all the styles that aren't directly applied to text like selection colour.
/// Use this to make your editor UI match the highlighted text.
#[derive(Debug, Default, RustcEncodable, RustcDecodable)]
#[derive(Clone, Debug, Default, RustcEncodable, RustcDecodable)]
pub struct ThemeSettings {
/// Foreground color for the view.
pub foreground: Option<Color>,
Expand Down Expand Up @@ -96,14 +96,14 @@ pub struct ThemeSettings {

/// A component of a theme meant to highlight a specific thing (e.g string literals)
/// in a certain way.
#[derive(Debug, Default, RustcEncodable, RustcDecodable)]
#[derive(Clone, Debug, Default, RustcEncodable, RustcDecodable)]
pub struct ThemeItem {
/// Target scope name.
pub scope: ScopeSelectors,
pub style: StyleModifier,
}

#[derive(Debug, RustcEncodable, RustcDecodable)]
#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
pub enum UnderlineOption {
None,
Underline,
Expand Down

0 comments on commit 8f1ec83

Please sign in to comment.