-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into issue-13832
- Loading branch information
Showing
13 changed files
with
231 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library 'status-jenkins-lib@v1.5.3' | ||
library 'status-jenkins-lib@v1.5.5' | ||
|
||
pipeline { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library 'status-jenkins-lib@v1.5.3' | ||
library 'status-jenkins-lib@v1.5.5' | ||
|
||
pipeline { | ||
agent { label 'macos' } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library 'status-jenkins-lib@v1.5.3' | ||
library 'status-jenkins-lib@v1.5.5' | ||
|
||
pipeline { | ||
agent { label 'linux' } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
(ns quo2.components.dividers.new-messages | ||
(:require [quo.react-native :as rn] | ||
[quo2.components.markdown.text :as text] | ||
[quo2.foundations.colors :as colors] | ||
[status-im.i18n.i18n :as i18n] | ||
[status-im.ui.components.react :as react])) | ||
|
||
(def themes | ||
{:light {:primary {:text-color colors/primary-50 | ||
:background-color colors/primary-50-opa-5} | ||
:purple {:text-color colors/purple-50 | ||
:background-color colors/purple-50-opa-5} | ||
:indigo {:text-color colors/indigo-50 | ||
:background-color colors/indigo-50-opa-5} | ||
:turquoise {:text-color colors/turquoise-50 | ||
:background-color colors/turquoise-50-opa-5} | ||
:blue {:text-color colors/blue-50 | ||
:background-color colors/blue-50-opa-5} | ||
:green {:text-color colors/green-50 | ||
:background-color colors/green-50-opa-5} | ||
:yellow {:text-color colors/yellow-50 | ||
:background-color colors/yellow-50-opa-5} | ||
:orange {:text-color colors/orange-50 | ||
:background-color colors/orange-50-opa-5} | ||
:red {:text-color colors/red-50 | ||
:background-color colors/red-50-opa-5} | ||
:pink {:text-color colors/pink-50 | ||
:background-color colors/pink-50-opa-5} | ||
:brown {:text-color colors/brown-50 | ||
:background-color colors/brown-50-opa-5} | ||
:beige {:text-color colors/beige-50 | ||
:background-color colors/beige-50-opa-5}} | ||
:dark {:primary {:text-color colors/primary-60 | ||
:background-color colors/primary-60-opa-5} | ||
:purple {:text-color colors/purple-60 | ||
:background-color colors/purple-60-opa-5} | ||
:indigo {:text-color colors/indigo-60 | ||
:background-color colors/indigo-60-opa-5} | ||
:turquoise {:text-color colors/turquoise-60 | ||
:background-color colors/turquoise-60-opa-5} | ||
:blue {:text-color colors/blue-60 | ||
:background-color colors/blue-60-opa-5} | ||
:green {:text-color colors/green-60 | ||
:background-color colors/green-60-opa-5} | ||
:yellow {:text-color colors/yellow-60 | ||
:background-color colors/yellow-60-opa-5} | ||
:orange {:text-color colors/orange-60 | ||
:background-color colors/orange-60-opa-5} | ||
:red {:text-color colors/red-60 | ||
:background-color colors/red-60-opa-5} | ||
:pink {:text-color colors/pink-60 | ||
:background-color colors/pink-60-opa-5} | ||
:brown {:text-color colors/brown-60 | ||
:background-color colors/brown-60-opa-5} | ||
:beige {:text-color colors/beige-60 | ||
:background-color colors/beige-60-opa-5}}}) | ||
|
||
(defn new-messages | ||
"new-messages params - label, color" | ||
[{:keys [label color] :or {label (i18n/label :new-messages-header) | ||
color :primary}}] | ||
(let [colors (colors/theme-colors (themes :light) (themes :dark)) | ||
bg-color (get-in colors [color :background-color]) | ||
text-color (get-in colors [color :text-color])] | ||
[react/linear-gradient {:colors [bg-color "rgba(0,0,0,0)"] | ||
:start {:x 0 :y 0} :end {:x 0 :y 1}} | ||
[rn/view {:style {:padding-left 60 | ||
:padding-vertical 12 | ||
:padding-right 24}} | ||
[text/text | ||
{:size :paragraph-2 | ||
:weight :medium | ||
:style {:color text-color}} | ||
label]]])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
(ns quo2.screens.dividers.new-messages | ||
(:require [quo.react-native :as rn] | ||
[reagent.core :as reagent] | ||
[quo.previews.preview :as preview] | ||
[quo2.foundations.colors :as colors] | ||
[quo2.components.dividers.new-messages :as new-messages])) | ||
|
||
(def descriptor [{:label "Label" | ||
:key :label | ||
:type :text} | ||
{:label "Color" | ||
:key :color | ||
:type :select | ||
:options [{:key :primary | ||
:value "Primary"} | ||
{:key :purple | ||
:value "Purple"} | ||
{:key :indigo | ||
:value "Indigo"} | ||
{:key :turquoise | ||
:value "Turquoise"} | ||
{:key :blue | ||
:value "Blue"} | ||
{:key :green | ||
:value "Green"} | ||
{:key :yellow | ||
:value "yellow"} | ||
{:key :orange | ||
:value "Orange"} | ||
{:key :red | ||
:value "Red"} | ||
{:key :pink | ||
:value "Pink"} | ||
{:key :brown | ||
:value "Brown"} | ||
{:key :beige | ||
:value "Beige"}]}]) | ||
(defn cool-preview [] | ||
(let [state (reagent/atom {:label "New messages" | ||
:color :primary})] | ||
(fn [] | ||
[rn/view {:margin-bottom 50 | ||
:padding 16} | ||
[preview/customizer state descriptor] | ||
[rn/view {:padding-vertical 60} | ||
[new-messages/new-messages @state]]]))) | ||
|
||
(defn preview-new-messages [] | ||
[rn/view {:background-color (colors/theme-colors | ||
colors/white | ||
colors/neutral-90) | ||
:flex 1} | ||
[rn/flat-list {:flex 1 | ||
:keyboardShouldPersistTaps :always | ||
:header [cool-preview] | ||
:key-fn str}]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters