-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
463 additions
and
237 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div>Icons made by <a href="https://www.flaticon.com/authors/dinosoftlabs" title="DinosoftLabs">DinosoftLabs</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" | ||
|
||
|
||
title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,8 +1,5 @@ | ||
<AnoCalendario>: | ||
color: C("#FFFFFF") | ||
background_color: C("#00BFFF") | ||
background_color: C("#4A93E7") | ||
background_normal: "" | ||
on_press: root.on_press() | ||
|
||
|
||
|
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,7 +1,7 @@ | ||
<AreaAnos>: | ||
orientation: "lr-tb" | ||
padding: 3 | ||
|
||
|
||
|
||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
infra/view/kv/areacalendario.kv → infra/view/area_calendario.kv
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,7 +1,7 @@ | ||
<AreaCalendario>: | ||
orientation: "lr-tb" | ||
padding: 3 | ||
|
||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#:import C kivy.utils.get_color_from_hex | ||
<AreaMenu>: | ||
pos_hint: {'top':1} #na parte superior da tela | ||
background_normal:'' | ||
background_down: '' | ||
background_color: 0,3, 10, 1 | ||
ActionView: | ||
|
||
ActionPrevious: | ||
title: root.dataAtual | ||
on_release: root.on_press_menu() | ||
app_icon: root.img_logo | ||
app_icon_width: root.width * 0.18 | ||
|
||
#ActionButton: | ||
# text: 'Sair' | ||
# on_release: root.confirmacao() | ||
|
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,25 +1,51 @@ | ||
# coding: utf-8 | ||
from datetime import date | ||
__author__ = "Lário dos Santos Diniz" | ||
|
||
from kivy.app import App | ||
from kivy.animation import Animation | ||
from kivy.uix.actionbar import ActionBar | ||
from kivy.uix.popup import Popup | ||
from kivy.uix.boxlayout import BoxLayout | ||
from kivy.uix.button import Button | ||
from kivy.uix.image import Image | ||
from kivy.utils import get_color_from_hex | ||
|
||
|
||
class AreaMenu(BoxLayout): | ||
class AreaMenu(ActionBar): | ||
"""Classe que define a area que mostra o menu.""" | ||
|
||
def __init__(self, **kwargs): | ||
super(AreaMenu, self).__init__(**kwargs) | ||
self.aplicacao = App.get_running_app() | ||
dataSelecionada = self.aplicacao.dataSelecionada | ||
self.dataAtual = dataSelecionada.dia_numero_mes+' '+dataSelecionada.mes_nome+ ' '+dataSelecionada.ano | ||
self.img_logo = self.aplicacao.pasta_imagens+'icon.png' | ||
|
||
super(AreaMenu, self).__init__(**kwargs) | ||
|
||
def on_press_dekatrian(self): | ||
self.aplicacao.mudarTela(self.aplicacao.tela_dekatrian) | ||
def on_press_menu(self): | ||
self.aplicacao.mudarTela(self.aplicacao.tela_menu) | ||
|
||
def on_press_calendario(self): | ||
self.aplicacao.mudarTela(self.aplicacao.tela_inicial) | ||
def sair(self, *args): | ||
self.aplicacao.stop() | ||
|
||
def on_press_desenvolvimento(self): | ||
self.aplicacao.mudarTela(self.aplicacao.tela_desenvolvimento) | ||
def confirmacao(self, *args): | ||
box = BoxLayout(orientation='vertical', padding=10, spacing=10) | ||
botoes = BoxLayout(padding=10, spacing=10) | ||
|
||
pop = Popup(title='Deseja mesmo sair?', content=box, | ||
size_hint=(None, None), | ||
size=(150, 150), | ||
background= self.aplicacao.pasta_imagens+'background.png', | ||
) | ||
|
||
__author__ = "Lário dos Santos Diniz" | ||
sim = Button(text='Sim', on_release=self.sair) | ||
nao = Button(text='Não', on_release=pop.dismiss) | ||
botoes.add_widget(sim) | ||
|
||
botoes.add_widget(nao) | ||
atencao = Image(source=self.aplicacao.pasta_imagens+'warning.png') | ||
box.add_widget(atencao) | ||
box.add_widget(botoes) | ||
|
||
anim = Animation(size=(300, 180), duration=0.2, t='out_back') | ||
anim.start(pop) | ||
pop.open() |
File renamed without changes.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.