Skip to content

Commit 74b80dd

Browse files
authored
Merge pull request #112 from pythonindia/feedback
include icons for feedback and reminder
2 parents a6b8131 + 1d8297e commit 74b80dd

File tree

10 files changed

+63
-520
lines changed

10 files changed

+63
-520
lines changed

eventsapp/data/default-0.png

12.5 KB
Loading

eventsapp/data/default.atlas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"default-0.png": {"logo": [2, 1825, 847, 221], "circle1": [851, 1831, 215, 215], "googleplus": [1068, 1918, 128, 128], "meetup": [1198, 1918, 128, 128], "youtube": [1328, 1918, 128, 128], "but_light": [1458, 1986, 249, 60], "but_overlay": [1709, 1986, 249, 60], "facebook": [2, 1723, 100, 100], "github": [104, 1723, 100, 100], "linkedin": [206, 1723, 100, 100], "proposal": [308, 1723, 100, 100], "telegram": [410, 1723, 100, 100], "twitter": [512, 1723, 100, 100], "website": [614, 1723, 100, 100], "hamburger": [1458, 1920, 64, 64], "transparent": [1960, 2034, 12, 12]}}
1+
{"default-0.png": {"logo": [2, 1825, 847, 221], "circle1": [851, 1831, 215, 215], "feedback": [1068, 1918, 128, 128], "googleplus": [1198, 1918, 128, 128], "meetup": [1328, 1918, 128, 128], "reminder": [1458, 1918, 128, 128], "share": [1588, 1918, 128, 128], "youtube": [1718, 1918, 128, 128], "but_light": [1068, 1856, 249, 60], "but_overlay": [1319, 1856, 249, 60], "facebook": [1848, 1946, 100, 100], "github": [2, 1723, 100, 100], "linkedin": [104, 1723, 100, 100], "proposal": [206, 1723, 100, 100], "telegram": [308, 1723, 100, 100], "twitter": [410, 1723, 100, 100], "website": [512, 1723, 100, 100], "hamburger": [1950, 1982, 64, 64], "transparent": [2016, 2034, 12, 12]}}

eventsapp/data/schedule.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"track": "all"
8484
},
8585
{
86-
"talk_id": "06",
86+
"talk_id": "05",
8787
"title": "Lunch",
8888
"start_time": "13:00",
8989
"end_time": "14:00",
@@ -106,7 +106,7 @@
106106
"track": "all"
107107
},
108108
{
109-
"talk_id": "06",
109+
"talk_id": "05",
110110
"title": "Lunch",
111111
"start_time": "13:15",
112112
"end_time": "14:05",
@@ -136,7 +136,7 @@
136136
"track": "all"
137137
},
138138
{
139-
"talk_id": "06",
139+
"talk_id": "05",
140140
"title": "Lunch",
141141
"start_time": "13:15",
142142
"end_time": "14:05",
@@ -166,7 +166,7 @@
166166
"track": "all"
167167
},
168168
{
169-
"talk_id": "06",
169+
"talk_id": "07",
170170
"title": "Lunch",
171171
"start_time": "13:15",
172172
"end_time": "14:05",

eventsapp/data/tracks.json

Lines changed: 24 additions & 495 deletions
Large diffs are not rendered by default.

eventsapp/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class PyConApp(App):
4040
Our main app class:
4141
'''
4242

43-
base_active_bright = ListProperty((226/255., 168/255., 180/255., 1))
43+
base_active_bright = ListProperty((216/255., 34/255., 118/255., 1))
4444
'''
4545
'''
4646

eventsapp/uix/screens/navigationscreen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class NavigationScreen(Screen):
2222
halign: 'left'
2323
valign: 'center'
2424
padding: dp(15), dp(15)
25-
color: app.base_active_color
25+
color: app.base_active_bright
2626
on_released: app.navigationdrawer.toggle_state()
2727
2828
<LeftPanel@BoxLayout+Image>

eventsapp/uix/screens/screencommunity.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from kivy.factory import Factory
33
from kivy.lang import Builder
44
from functools import partial
5+
from kivy.app import App
56

67

78
class ScreenCommunity(Screen):
@@ -44,12 +45,13 @@ def on_enter(self, onsuccess=False):
4445

4546
social_comm = community['social']
4647
# social_len = len(social_comm)
47-
48+
app = App.get_running_app()
4849
gl = self.ids.container
4950
gl.clear_widgets()
5051
import webbrowser
5152
for social_acc, social_link in social_comm.items():
5253
imbt = Factory.ImBut()
54+
imbt.color = app.base_active_bright
5355
imbt.source = 'atlas://data/default/' + social_acc.lower()
5456
imbt.on_released = partial(webbrowser.open, social_link)
5557
gl.add_widget(imbt)

eventsapp/uix/screens/screentalks.py

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ class SpeakerDetails(Factory.ScrollGrid):
2828
text: root.speaker['name']
2929
BackLabel
3030
text: root.speaker['info']
31-
ActiveButton
32-
text: "More details on cfp..."
33-
on_release:
34-
import webbrowser
35-
if 'cfp' in root.speaker: webbrowser.open(root.speaker['cfp'])
3631
''')
3732

3833

@@ -69,15 +64,30 @@ class ScreenTalks(Screen):
6964
<ScreenTalks>
7065
spacing: dp(9)
7166
name: 'ScreenTalks'
72-
ScrollView
73-
id: scroll
74-
ScrollGrid
75-
id: container
76-
BackLabel:
77-
active: True
78-
id: talk_title
79-
BackLabel:
80-
id: talk_desc
67+
BoxLayout:
68+
orientation: 'vertical'
69+
ScrollView
70+
id: scroll
71+
ScrollGrid
72+
id: container
73+
BackLabel:
74+
active: True
75+
id: talk_title
76+
BackLabel:
77+
id: talk_desc
78+
BoxLayout
79+
size_hint_y: None
80+
height: dp(54)
81+
padding: dp(9)
82+
ImBut
83+
source: 'atlas://data/default/share'
84+
color: app.base_active_bright[:3] + [.9]
85+
ImBut
86+
source: 'atlas://data/default/reminder'
87+
color: app.base_active_bright[:3] + [.9]
88+
ImBut
89+
source: 'atlas://data/default/feedback'
90+
color: app.base_active_bright[:3] + [.9]
8191
''')
8292

8393
def on_pre_enter(self):
@@ -118,7 +128,7 @@ def on_enter(self, onsuccess=False):
118128
social_acc.lower()
119129
imbt.on_released = partial(
120130
webbrowser.open, social_link)
121-
imbt.color = app.base_active_color
131+
imbt.color = app.base_active_bright[:3] + [.9]
122132
gl.add_widget(imbt)
123133
speaker_details.add_widget(gl)
124134
self.ids.container.add_widget(speaker_details)

eventsapp/uix/screens/screenticket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ScreenTicket(Screen):
1616
spacing: dp(12)
1717
orientation: 'vertical'
1818
AsyncImage:
19-
source: 'https://www.wwkd.org/wp-content/uploads/2018/08/tickets.png'
19+
source: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTfnU9KBKU6YoSa7bLg08XxPvq7_sujdQoEJRAzD9sDCCaUcTYXnA'
2020
allow_stretch: True
2121
size: root.size
2222
opacity: 1

eventsapp/uix/screens/startupscreen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ class StartupScreen(Screen):
4141
size_hint_y: None
4242
active: False
4343
height: (self.texture_size[1] + dp(9)) if self.text else 0
44-
backcolor: (app.base_active_color[:3] if self.active else app.base_inactive_color[:3]) + [.3]
44+
backcolor:
45+
(app.base_active_color[:3] if self.active else\
46+
app.base_inactive_color[:3]) + [.3]
4547
color: (.22, .22, .22, 1) if not self.active else (1, 1, 1, 1)
4648
text_size: self.width - dp(9), None
4749
halign: 'center'

0 commit comments

Comments
 (0)