workred on identicon issue for android devices
This commit is contained in:
parent
6268554b5b
commit
af9afcb365
|
@ -650,7 +650,7 @@ NavigationLayout:
|
||||||
do_scroll_x: False
|
do_scroll_x: False
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
padding: [dp(app.window_size[0]/4*1.1), dp(10)]
|
padding: [dp(app.window_size[0]/16 if app.window_size[0] <= 720 else app.window_size[0]/4*1.1), dp(10)]
|
||||||
spacing: 12
|
spacing: 12
|
||||||
size_hint_y: None
|
size_hint_y: None
|
||||||
height: self.minimum_height + dp(app.window_size[1]) if app.window_size[1] > app.window_size[0] else dp(app.window_size[0])
|
height: self.minimum_height + dp(app.window_size[1]) if app.window_size[1] > app.window_size[0] else dp(app.window_size[0])
|
||||||
|
|
|
@ -57,9 +57,10 @@ import state
|
||||||
from uikivysignaler import UIkivySignaler
|
from uikivysignaler import UIkivySignaler
|
||||||
# pylint: disable=unused-argument, too-few-public-methods, import-error
|
# pylint: disable=unused-argument, too-few-public-methods, import-error
|
||||||
|
|
||||||
|
import identiconGeneration
|
||||||
if platform == 'linux':
|
import os
|
||||||
import identiconGeneration
|
from kivy.core.clipboard import Clipboard
|
||||||
|
# pylint: disable=unused-argument, too-few-public-methods
|
||||||
|
|
||||||
|
|
||||||
def toast(text):
|
def toast(text):
|
||||||
|
@ -1028,7 +1029,6 @@ class NavigateApp(App): # pylint: disable=too-many-public-methods
|
||||||
|
|
||||||
def getCurrentAccountData(self, text):
|
def getCurrentAccountData(self, text):
|
||||||
"""Get Current Address Account Data."""
|
"""Get Current Address Account Data."""
|
||||||
if platform == 'linux':
|
|
||||||
self.set_identicon(text)
|
self.set_identicon(text)
|
||||||
address_label = self.current_address_label(
|
address_label = self.current_address_label(
|
||||||
BMConfigParser().get(text, 'label'), text)
|
BMConfigParser().get(text, 'label'), text)
|
||||||
|
@ -1089,7 +1089,6 @@ class NavigateApp(App): # pylint: disable=too-many-public-methods
|
||||||
def getDefaultAccData(self):
|
def getDefaultAccData(self):
|
||||||
"""Getting Default Account Data."""
|
"""Getting Default Account Data."""
|
||||||
if BMConfigParser().addresses():
|
if BMConfigParser().addresses():
|
||||||
if platform == 'linux':
|
|
||||||
img = identiconGeneration.generate(BMConfigParser().addresses()[0])
|
img = identiconGeneration.generate(BMConfigParser().addresses()[0])
|
||||||
self.createFolder('./images/default_identicon/')
|
self.createFolder('./images/default_identicon/')
|
||||||
img.texture.save('./images/default_identicon/{}.png'.format(BMConfigParser().addresses()[0]))
|
img.texture.save('./images/default_identicon/{}.png'.format(BMConfigParser().addresses()[0]))
|
||||||
|
@ -1109,7 +1108,6 @@ class NavigateApp(App): # pylint: disable=too-many-public-methods
|
||||||
def get_default_image():
|
def get_default_image():
|
||||||
"""Getting default image on address"""
|
"""Getting default image on address"""
|
||||||
if BMConfigParser().addresses():
|
if BMConfigParser().addresses():
|
||||||
if platform == 'linux':
|
|
||||||
return './images/default_identicon/{}.png'.format(BMConfigParser().addresses()[0])
|
return './images/default_identicon/{}.png'.format(BMConfigParser().addresses()[0])
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,8 @@ requirements =
|
||||||
bitmsghash,
|
bitmsghash,
|
||||||
kivymd,
|
kivymd,
|
||||||
kivy-garden,
|
kivy-garden,
|
||||||
qrcode
|
qrcode,
|
||||||
|
Pillow
|
||||||
|
|
||||||
# (str) Custom source folders for requirements
|
# (str) Custom source folders for requirements
|
||||||
# Sets custom source for any requirements with recipes
|
# Sets custom source for any requirements with recipes
|
||||||
|
|
Reference in New Issue
Block a user